java - Android - Remove data from SDCard -


my application use sdcard store data (about 100 mb of stuff). delete these file when application deleted through application manager , offer way clear data there (like google apps does). ideas ?

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

accessing files on external storage

if you're using api level 8 or greater, use getexternalfilesdir() open file represents external storage directory should save files. ... if user uninstalls application, directory , contents deleted.

from understanding create file on sd card has scope (like directory of applications package namespace) , phone delete directory when uninstall app. assume how google apps achieves function.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -