Android: how to delete a folder on an SD card

My application creates a folder on the SD card. I want to delete a folder when the application deletes or when the application is notified of the removal . Anyway to do this? Thanks in advance!

+3
source share
2 answers

use getExternalFilesDir () to get the directory on the sdcard, which will be deleted when your application is deleted.

http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

+1
source

Android at the moment does not allow you to execute code at the time of uninstalling your application.

, SharedPreferences, Aplication Data a Cache.

, , - , SD-, .

+1

All Articles