how to ask for admin rights in android?

I do not want to launch with root, just as a common Android app, like other. I want to ask the user nicely and after that have the admin access and protection. Kaspersky is able to do it, so others should be able too.
screenshot

What are the API calls here?

Answer

It is using the Device Administration APIs, you can read about it here:

http://developer.android.com/guide/topics/admin/device-admin.html

Leave a Reply

Your email address will not be published. Required fields are marked *