Reputation: 123
How can I skip the "are you sure" dialog while uninstalling an android app from another app?
Upvotes: 1
Views: 1386
Reputation: 16393
You have no control over other apps as far as install/uninstall, basic Android security.
The best you can do is have your app check for the existence of the app you are concerned about your students using and not letting your app run if it is present.
Then it is up to the student. They have the choice to uninstall said app to allow yours to run, or not run your app.
Upvotes: 1
Reputation: 5543
I guess that is not possible due to android security policy. And that policies have reasons to be there.
Otherwise every app would be able to uninstall another one causing troubles to the users if that operation is performed by a rogue app.
Upvotes: 3