IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Android
 
RSS feed
 
New topic
Author

where application is saved in android?

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Messages: 180

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
Ranch Hand

Joined: Oct 12, 2008
Messages: 955

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
Messages: 180

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


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

Joined: Oct 12, 2008
Messages: 955

Take some time to read this: Data Storage - Files

[List of FAQs] | [Android FAQ] | [My Blog]
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Android
 
RSS feed
 
New topic
hibernate profiler