I have the following requirement. I need to prevent not admin users exit the Android application.
So, is there any way to disable the followings
- long press home button event
- long press search button
- power off button press
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no notion of an ‘admin user’ in Android. You can’t really do this without developing your custom Android firmware. The hardware/system buttons are controlled by the system, so you cannot disable or customize them.