[android-developers] Re: Deleting cached SD card files on uninstall
As a clarification, I am placing the files in the SD card folder as obtained via a call to getExternalStorageDirectory(), e.g: /sdcard/Android/data/com.gabysoft.myapp On Feb 17, 8:40 am, John Gaby jg...@gabysoft.com wrote: I am downloading and caching some files to the SD card. I am placing the files at: /Android/data/com.gabysoft.myapp When the app is uninstalled, on some phones (e.g. the emulator and Motorola Droid), these files are automatically delete (which is what I want). On other phones (e.g. HTC Hero and HTC Legend), they are not. Where can I put these files so that they will be deleted on uninstall for all devices? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Deleting cached SD card files on uninstall
So there is no way to clean up my files on pre 2.2 systems? On Feb 17, 8:52 am, Mark Murphy mmur...@commonsware.com wrote: You can't. Deleting files on uninstall via getExternalFilesDir() was added in API Level 8 (a.k.a., Android 2.2). On Thu, Feb 17, 2011 at 11:40 AM, John Gaby jg...@gabysoft.com wrote: I am downloading and caching some files to the SD card. I am placing the files at: /Android/data/com.gabysoft.myapp When the app is uninstalled, on some phones (e.g. the emulator and Motorola Droid), these files are automatically delete (which is what I want). On other phones (e.g. HTC Hero and HTC Legend), they are not. Where can I put these files so that they will be deleted on uninstall for all devices? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Deleting cached SD card files on uninstall
On Thu, Feb 17, 2011 at 12:05 PM, John Gaby jg...@gabysoft.com wrote: So there is no way to clean up my files on pre 2.2 systems? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en