1

I have created some files through my android application. I want to remove these files when the application is removed from the device. How can I get it done. Any help will be appreciated..

Thanks in advance..

subair_a
  • 1,028
  • 2
  • 14
  • 19

3 Answers3

1

please read the link http://developer.android.com/guide/topics/data/data-storage.html

Bytecode
  • 6,551
  • 16
  • 54
  • 101
0

If you create them in the correct locations, they will be removed automatically.

Philip Sheard
  • 5,789
  • 5
  • 27
  • 42
  • I was storing the data, /sdcard/Android/data/myproject/file1 What do u mean by correct locations..? – subair_a Apr 09 '11 at 10:39
0

Check up the storage section of Data Storage section of Dev Guide doc.

If you use those approaches other than external storage, your data will be automatically removed when uninstalling app.

Lyn
  • 699
  • 1
  • 7
  • 17