Is there a way to make an application uninstall itself?
For example:
I want to be able to click on an “Uninstall” button in my app and have the the app uninstall itself.
I can imagine that you can call a function of the firmware and delegate the action to it so the app gets uninstalled.
The reason I need this is that when the app is uninstalled I need to delete some files on the sdcard that were downloaded by the app.
You can Remove your App using Intent.ACTION_DELETE
try this it work for me