[Q] How to require a password to uninstall an app?

In new to making apps, so I need a little help. I wanted to make some sort of security app, with admin privelages, but its extremely easy to reactive device admin, and uninstall the app. I saw an app called prey that activates the screen lock with a previously set password when you try and deactivate device admin, and you cannot use the phone at all till the password is entered. How exactly could I add this feature to my app? A step by step would be a great help. Thanks.

Here is a link to prey if you'd like to see it to get a better understanding.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by kurtis.gerlach
20 minutes ago
Last post by autumn.schuppe
4 hours ago
Last post by gbartell
40 minutes ago
Last post by hweissnat
1 hour ago
Last post by hilario.cormier
4 hours ago
Last post by vada00
26 minutes ago
Last post by julius98
3 hours ago
Last post by tina.harvey
3 hours ago
Last post by glenna11
2 hours ago
Last post by antonina14
1 hour ago
Bluesnarfing
Started by beth22
Last post by amelie86
45 minutes ago
Last post by kuvalis.norma
4 hours ago