Marshmallow


 

  1. Runtime Permissions
  2. Chrome Custom Tabs
  3. Fingerprint Authentication

 

1. Runtime Permissions

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, PermissionUtils.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

Step 6 : Open build.gradle(Module: app) and add following code :

 

ScreenShot:

runtime_permission1 runtime_permission2 runtime_permission3 runtime_permission4 runtime_permission5 runtime_permission6

Download SourceCode

 

 

2. Chrome Custom Tabs

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, CustomTabActivityHelper.java and add following code :

Step 5 : Open src -> package -> Create new class, CustomTabsHelper.java and add following code :

Step 6 : Open src -> package -> Create new class, KeepAliveService.java and add following code :

Step 7 : Open src -> package -> Create new class, WebviewFallback.java and add following code :

Step 8 : Open src -> package -> Create new class, WebViewActivity.java and add following code :

Step 9 : Open AndroidManifest.xml and add following code :

Step 10 : Open build.gradle(Module: app) and add following code :

 

ScreenShot:

chrome_custom_tab1 chrome_custom_tab2 chrome_custom_tab3 chrome_custom_tab4

Download SourceCode

 

 

3. Fingerprint Authentication

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, FingerPrintAuthHelper.java and add following code :

Step 5 : Open src -> package -> Create new class, FingerPrintAuthCallback.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

Step 7 : Open build.gradle(Module: app) and add following code :

ScreenShot:

fingerprint-authenticatefingerprint-authenticate-errorfingerprint-authenticate-errorfingerprint-emulate-ui

Download SourceCode