I have an android app where the client will be let two tablets for experiments.
The question is: Is possible to prevent users from minimizing or closing the app? How can I do that?
Go to the Recents page (swipe up and hold if using gesture navigation, or tap the III button if you're using navigation buttons). Tap the app icon above the app preview/card. Tap Lock this app.
Kiosk mode is what you are looking for! It was introduced in Android 4.2.
To enable kiosk mode, set this in your activity_main.xml
:
<intent-filter>
<category android:name="android.intent.category.HOME" />
</intent-filter>
This question is most likely a dupe of: Develop app run in kiosk mode in android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With