Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where application is saved in android?

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application I created a file in sdcard, now when I uninstalled application the file which is created by application is still exist on sdcard.so each time after uninstalling application I have to delete that file manually.

But I want that file is also deleted after uninstalling application. So, where I have to save that file, so it will be deleted automatically after Uninstalling application.


Thanks
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few suggestions:

1. If the file is small, you could save the file in application's memory: the file will be saved in apps>your package folder and when the package is removed the file would be too.
2. You could delete the file from SD card when your application terminates.
3. Use Preferences API, if possible.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to create file in application memory?

If I want to create file in sdcard i am creating it as



somebody please tell me how to create file in application memory, so it will be deleted automatically after application is uninstalled.

Thanks
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take some time to read this: Data Storage - Files
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic