How to delete data recorded on an SD card automatically when an Android application is uninstalled?

I developed an Android application that writes to the device’s SD card. I want that as soon as I uninstall the application, the data recorded on the SD card should be deleted automatically. Is there any way to do this ??? I am using android 2.1. Thanks for your help in advance.

+5
source share
2 answers

from android documentation: http://developer.android.com/guide/topics/data/data-storage.html#ExternalCache

API- 8 , getExternalCacheDir(), , , . , . , .

API- 7 , getExternalStorageDirectory(), , , :

/Android/data//cache/ Java, "com.example.android.app".

+3

android/data/your.package.name, . SD, .

+1

All Articles