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 <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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/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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

