Skip to content

Commit

Permalink
simple login application...
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalcse1 committed Jul 3, 2021
1 parent 80ec4e3 commit dc31fe9
Show file tree
Hide file tree
Showing 56 changed files with 20,472 additions and 0 deletions.
83 changes: 83 additions & 0 deletions Xamarin/SimpleLoginApp/SimpleLoginApp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31410.357
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleLoginApp.Android", "SimpleLoginApp\SimpleLoginApp.Android\SimpleLoginApp.Android.csproj", "{4832F6C2-77A6-4C55-896F-34F15120EC9A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleLoginApp.iOS", "SimpleLoginApp\SimpleLoginApp.iOS\SimpleLoginApp.iOS.csproj", "{BEE307DD-0E63-455C-B500-7F1E9B9E134D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleLoginApp", "SimpleLoginApp\SimpleLoginApp\SimpleLoginApp.csproj", "{44C88FAE-40C0-4967-8A82-C065F3BDBB50}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhone.Build.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|Any CPU.Build.0 = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|Any CPU.Deploy.0 = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhone.ActiveCfg = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhone.Build.0 = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhone.Deploy.0 = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{4832F6C2-77A6-4C55-896F-34F15120EC9A}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|Any CPU.Build.0 = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|Any CPU.Deploy.0 = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhone.ActiveCfg = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhone.Build.0 = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhone.Deploy.0 = Debug|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|Any CPU.Deploy.0 = Release|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhone.ActiveCfg = Release|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhone.Build.0 = Release|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhone.Deploy.0 = Release|iPhone
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{BEE307DD-0E63-455C-B500-7F1E9B9E134D}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhone.Build.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|Any CPU.Build.0 = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|Any CPU.Deploy.0 = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhone.ActiveCfg = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhone.Build.0 = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhone.Deploy.0 = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{44C88FAE-40C0-4967-8A82-C065F3BDBB50}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D2546010-9CAC-4B06-968C-F1E91463BB49}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with your package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.OS;

namespace SimpleLoginApp.Droid
{
[Activity(Label = "SimpleLoginApp", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);

Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
{
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.simpleloginapp">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
<application android:label="SimpleLoginApp.Android" android:theme="@style/MainTheme"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SimpleLoginApp.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SimpleLoginApp.Android")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Images, layout descriptions, binary blobs and string dictionaries can be included
in your application as resource files. Various Android APIs are designed to
operate on the resource IDs instead of dealing with images, strings or binary blobs
directly.

For example, a sample Android app that contains a user interface layout (main.xml),
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
would keep its resources in the "Resources" directory of the application:

Resources/
drawable-hdpi/
icon.png

drawable-ldpi/
icon.png

drawable-mdpi/
icon.png

layout/
main.xml

values/
strings.xml

In order to get the build system to recognize Android resources, set the build action to
"AndroidResource". The native Android APIs do not operate directly with filenames, but
instead operate on resource IDs. When you compile an Android application that uses resources,
the build system will package the resources for distribution and generate a class called
"Resource" that contains the tokens for each one of the resources included. For example,
for the above Resources layout, this is what the Resource class would expose:

public class Resource {
public class drawable {
public const int icon = 0x123;
}

public class layout {
public const int main = 0x456;
}

public class strings {
public const int first_string = 0xabc;
public const int second_string = 0xbcd;
}
}

You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
string in the dictionary file values/strings.xml.
Loading

0 comments on commit dc31fe9

Please sign in to comment.