disabling and hiding android navigation bar/notification menu permanently

后端 未结 3 2083
渐次进展
渐次进展 2021-01-20 15:24

Im developing an android application for a school and i want this application when opened to prevent the user from doing anything on the device except what im offering insid

3条回答
  •  半阙折子戏
    2021-01-20 16:01

    You can get a kiosk type mode in Android 5.0, using the screen pinning feature mentioned here:

    Android 5.0 introduces a new screen pinning API that lets you temporarily restrict users from leaving your task or being interrupted by notifications. This could be used, for example, if you are developing an education app to support high stakes assessment requirements on Android, or a single-purpose or kiosk application. Once your app activates screen pinning, users cannot see notifications, access other apps, or return to the home screen, until your app exits the mode.

    You can lock the device down to be a kiosk. The navigation bar is not hidden, but the home and recents buttons can be removed or disabled depending how you activate the mode. I wrote some information after testing this feature here.

提交回复
热议问题