Ergh...  that may be a bug. :(  To be clear, when doing the update your
internal data is not being erased, but the data on the SD card is?

On Sat, Jul 24, 2010 at 10:11 AM, Joseph Earl <joseph.w.e...@gmail.com>wrote:

> I have an application which resides on the phone memory but downloads
> large data to the SD card on first launch (the app needs to be able to
> work without an internet connection most of the time)
>
> When using the recommend directory given in Froyo it seems all files
> on the SD card are deleted when I install a newer version of the .apk.
> I'd preferably like the files removed on uninstall, but not on upgrade
> since the files on the SD card aren't going to change between
> application versions, and forcing the user to re-download a large file
> that is independent of the application version does not seem
> reasonable.
>
> At the moment it seems I'm forced to use a different directory to the
> recommended one in order to stop Froyo deleting all the files when the
> application is upgraded.
>
> Am I doing something wrong, or is this how it is supposed to work (I'm
> guessing it is)? (Or perhaps I misunderstood what getExternalFilesDir
> is for)
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to