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.