-2

I've searched for questions to help me but I have no clear answers.
I need to start an application on my tablet and don't let the user get off from it.
I'm searching something like the "one app method" that I use on my iPad Air 2.
I need it because this tablet goes into a kiosk.

Is it possible to do?
If needed, I can implement some hidden button to get off the kiosk-mode.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Twing90
  • 407
  • 2
  • 5
  • 15

1 Answers1

0

Google recently released the Android Management API which allows to easily set up kiosk mode for any Android devices running Android 5.1 or above, and also to set various other policies.

To lock the device on one app, or on multiple app, you define a kiosk policy like below, it will disable the navigation buttons (sample copied from Create a policy):

"applications": [
 {
   "packageName": "com.example.app",
   "installType": "FORCE_INSTALLED",
   "lockTaskAllowed": true,
   "defaultPermissionPolicy": "GRANT",
 },
"persistentPreferredActivities": [
  {
    "receiverActivity": "com.example.app/.com.example.app.MainActivity",
    "actions": [
      "android.intent.action.MAIN"
    ],
    "categories": [
      "android.intent.category.HOME",
      "android.intent.category.DEFAULT"
    ]
  }
]
Fred
  • 2,191
  • 1
  • 12
  • 14