Posts

Showing posts from October, 2020

Picture In Picture | Android Studio | Kotlin

Image
How to add Picture In Picture Mode in the android app? The Android 8.0 (API level 26) allows activities to launch in the picture-in-picture (PIP) mode. PIP is a special type of multi-window mode mostly used for video playback. It lets the user watch a video in a small window pinned to a corner of the screen while navigating between apps or browsing content on the main screen. The PIP window appears in the top layer of the screen in a corner chosen by the system. >>Check For Java Video: Step 1:  Create a new project   or   open an existing project Step 2: Create another activity named PIPActivity Step 3: Add the following properties to the PIPActivity in AndroidManifest <activity android:name= ".PIPActivity" android:configChanges= "screenSize|smallestScreenSize|screenLayout|orientation" android:launchMode= "singleTask" android:resizeableActivity= "true" android:supportsPictureInPic...

Picture In Picture | Android Studio | Java

Image
How to add Picture In Picture Mode in the android app? The Android 8.0 (API level 26) allows activities to launch in the picture-in-picture (PIP) mode. PIP is a special type of multi-window mode mostly used for video playback. It lets the user watch a video in a small window pinned to a corner of the screen while navigating between apps or browsing content on the main screen. The PIP window appears in the top layer of the screen in a corner chosen by the system. >>Check For Kotlin Video: Step 1: Create a new project   OR   Open your project Step 2: Create another activity named PIPActivity Step 3: Add the following properties to the PIPActivity in AndroidManifest <activity android:name= ".PIPActivity" android:configChanges= "screenSize|smallestScreenSize|screenLayout|orientation" android:launchMode= "singleTask" android:resizeableActivity= "true" android:supportsPictureInPicture= ...

Biometric Authentication | Android Studio | Kotlin

Image
How to do Biometric Authentication? In this tutorial, we will learn how to use Biometric Authentication e.g. Fingerprint Authentication/Login. There may be some features in your app that needs user authentication. So here is the simplest example of using Biometric Authentication. >>Check For Java Video: Step 1:  Create a new project  OR  Open your existing project Step 2: Code build.gradle Add the biometric library to app-level build.gradle file dependencies { implementation 'androidx.biometric:biometric:1.0.1' } AndroidManifest.xml Add the USE_BIOMETRIC dependency to the AndroidManifest.xml file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.biometricauthentication" > <!--Add permission--> <uses-permission android:name= "android.permission.USE_BIOMETRIC" /> <...

Biometric Authentication | Android Studio | Java

Image
How to do Biometric Authentication? In this tutorial, we will learn how to use Biometric Authentication e.g. Fingerprint Authentication/Login. There may be some features in your app that needs user authentication. So here is the simplest example of using Biometric Authentication. >>Check For Kotlin Video: Step 1: Create a new project   OR   Open your project Step 2: Code build.gradle Add the biometric library to app-level build.gradle file dependencies { implementation 'androidx.biometric:biometric:1.0.1' } AndroidManifest.xml Add the USE_BIOMETRIC dependency to the AndroidManifest.xml file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.biometricauthentication" > <!--Add permission--> <uses-permission android:name= "android.permission.USE_BIOMETRIC" /> <applica...