1

When I first heard about screen pinning in Lollipop, I though it would be perfect for making low-cost kiosks that use dedicated apps.

Here is the scenario I imagined: The admin would configure the device, then pin the app to be used. The user would be locked into using only the pinned app, and would not be able to lock themselves out of the device.

Each of the individual system buttons (back, home, overview) are disabled. Perfect. Pressing the back button gives instructions on how to exit the pinned app (hold back+overview).

It works well until the user tries to exit the app. Holding the back+overview buttons effectively locks the device, with no way to return to the app.

Also, the user is still allowed to power off the device while an app is pinned. Why?!

In conclusion...

Is there an out-of-the-box way of making a screen pinned app that will be feasible to use as a kiosk app?

Or do I need to take a programmatic approach and use something like Device Owner?

  • You can't shut the device down. It will do nothing, but close the menu (just tested with my device). If you defined a lock method (pattern, pin, password etc.) then the user is unable to exit screen pinning without entering your unlock code. One issue: on custom ROMs like CyanogenMod you are able to reboot through the custom reboot menu. – GiantTree Dec 29 '14 at 22:38
  • You CAN power off the device while an app is pinned. I just tested on a fresh install of 5.0.1. And the user can't escape the lock screen once it's been triggered. Are you testing only on a modded device? – posit labs Dec 30 '14 at 15:09
  • I tested it on a custom ROM, yes. But it is also on Android 5.0.2, maybe some update has happened there about that issue, don't know. – GiantTree Dec 30 '14 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.