Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing Android app from closing

Tags:

android

  1. Is it possible to prevent an Android app. from closing?
  2. Is it possible to do this without modifying the OS?

I don't want the app. to close unless the user authenticates with a password or some other mechanism. I don't want any system settings changed without authentication either.


I want to use an Android tablet in stores and offices. I don't want customers messing with the OS or breaking stuff. So, I want the tablet locked to one app. until an administrator authenticates.

I don't want any modifications to the tablet, but I do want one app. to be functional.

like image 659
Jay Avatar asked Apr 12 '26 01:04

Jay


1 Answers

Something like this with enhancements? Source of Android's lock screen or How to lock the Screen customly? Just like WaveSecure in Android

Maybe take a look at this source code and use it to extend the functionality of your app to lock to just your program.

The WaveSecure App requires entering a password before it allows access to the phone.

Edit: http://developer.android.com/guide/topics/admin/device-admin.html might give you the options you want too.

like image 169
jordanhill123 Avatar answered Apr 13 '26 15:04

jordanhill123



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!