-3

What package or event can I use so that my apk can not uninstall or execute an action when it wants to uninstall?

1 Answers1

0

This is impossible.

You can provide messaging to the user and make it slightly more difficult when uninstalling using the admin api.

have a look here - https://stackoverflow.com/a/7540037/1856361

Community
  • 1
  • 1
Matthew Shearer
  • 2,715
  • 3
  • 23
  • 32
  • Thanks @MatthewShearer, that's what I was looking for, that before the user could uninstall the application, enter a password to be able to uninstall it, I will start reading about the device administrator api. – Heder Ithamar May 15 '17 at 23:56
  • no problem, please mark it as the correct answer if so – Matthew Shearer May 16 '17 at 00:09