If a user uninstalls an app from his phone, which data is explicitly deleted?
I know that preferences are deleted. What about files on the sd card and about databases created by this app?
If the data on the sd card is not deleted how can I avoid cluttering the users phone if I write larger amounts of data, like images on the sd card?
Yes, deleting an app removes the program and all its data. That means if you paid to purchase the app, you won't have to pay again should you choose to reinstall it.
In Android, when an app is installed, except in some special situations, a new user is created. The app will be executed using this new user's privileges. When an app is uninstalled, the user will be deleted. Any data left behind by this app now become “orphans”, because their owner no longer exists.
Revoke will provide a copy of your data before you request that it is deleted. Only you can access this data, using a private key stored on your phone. Companies are required to respond to your request and confirm that your data has been deleted.
This was previously addressed here, too:
Android: Delete app associated files from external storage on Uninstall?
Based on that, it looks like files written to the sdcard are not able to be deleted upon application removal.
If this is the case, it seems like a pretty major oversight in the architecture.
In my experience...and I will gladly be corrected.
Databases and files residing in com.example.youapp get deleted. As for the SD-CARD I doubt they will get deleted. What if your app created pictures, then all their pictures would be deleted when the user uninstalled.
As for handling deleting this stuff on uninstall...that is a good question. There may be some sort of handler you can invoke when your app gets uninstalled to help do some extra stuff. Somewhere in the Manifest sounds like it might be a candidate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With