'How to prevent users from deactivating an android app admin permissions

Recently I've been doing some work on android apps and I am trying to make a 'Parental Control' type of app but I've ran into a major problem: I don't know how to prevent people from Uninstalling / Deactivating the app's admin status. I have seen some other apps do that so I know it's possible. Can anyone please tell me how to do that?

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source