Screen Pinning Android Studio. Swipe up to the middle of your screen. To activate screen pinning programmatically, call startlocktask() from your app.
Screen pinning is one of the most attractive feature google has introduced in this latest lollipop release. I don't feel like adding a pin to every app. Let’s see how we can achieve it.
Starting from android 5.0 we have the opportunity to easily create a kiosk application in android.
Andriod 5.0 introduces the screen pinning feature, as its documentation said: Android lollipop (and marshmallow) android 5.0 (lollipop) and 6.0 (marshmallow) now have an official kiosk mode that anybody can use, but they don’t call it kiosk mode. As if you want that present screen opened on your smartphone is only shown on screen and pressing any button or switching app does not happen, then you can pin screen using screen pinning. Pinning will be disabled which can be observed from.