Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Files saved on the phone are not uninstalled with the application #143

tormodh opened this Issue Feb 21, 2011 · 1 comment


None yet
2 participants

tormodh commented Feb 21, 2011

Files are put in the external storage, an won't be deleted with the app if it is uninstalled.

On the second hand, it is in the external storage, and will fail if there is no external storage mounted (sd-card)

On the third hand; it is on the external storage, so it is not taking internal space on the phone. Putting the files (local storage + temp) on the external storage under application control is on the version 8 of the Android API - and thus not suitable yet.


chuckbjones commented Sep 30, 2011

You can use the external storage directories in API 8 devices even if the app targets a lower API.

From the Android dev guide:

If you're using API Level 7 or lower, use getExternalStorageDirectory(), to open a File representing the root of the
external storage. You should then write your data in the following directory:

The <package_name> is your Java-style package name, such as "com.example.android.app". If the user's device is
running API Level 8 or greater and they uninstall your application, this directory and all its contents will be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment