Which data will be deleted, if a user uninstalls an android application

android, persistence

Solution

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.

Problem

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?

Original source

Related problems