aspose file tools
The moose likes Android and the fly likes where application is saved in android? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "where application is saved in android?" Watch "where application is saved in android?" New topic
Author

where application is saved in android?

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 611

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

Life is easy because we write the source code.....
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1355

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.


[List of FAQs] | [Android FAQ] | [My Blog]
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 611

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

This message was edited 1 time. Last update was at by Pramod P Deore

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1355

Take some time to read this: Data Storage - Files
 
 
subject: where application is saved in android?
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com