junglejet Active Member Licensed User Longtime User Apr 14, 2012 #1 I have a Galaxy I5500 as development device. Since upgrade from Android 2.1 to 2.2 it erases all files in the DirDefaultExternal folder (Android/data/<app>/files) on every new installation. Is there any reason for this? Can I avoid this by an IDE setting? Thanks Andy
I have a Galaxy I5500 as development device. Since upgrade from Android 2.1 to 2.2 it erases all files in the DirDefaultExternal folder (Android/data/<app>/files) on every new installation. Is there any reason for this? Can I avoid this by an IDE setting? Thanks Andy
HotShoe Well-Known Member Licensed User Longtime User Apr 14, 2012 #2 I'd guess that it has something to do with the key signature you are using. By default Android should replace the app with the new one and retain data. If a different key is used, it will re-install and wipe data. --- Jem Upvote 0
I'd guess that it has something to do with the key signature you are using. By default Android should replace the app with the new one and retain data. If a different key is used, it will re-install and wipe data. --- Jem
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2012 #3 File.DirDefaultExternal should only be deleted when the user uninstalls your program. Unfortunately on some Android 2.2 devices this folder also gets deleted when doing a reinstall / update. This is a bug in one of the early versions of Android 2.2 (froyo). The only workaround is to use a different folder. Upvote 0
File.DirDefaultExternal should only be deleted when the user uninstalls your program. Unfortunately on some Android 2.2 devices this folder also gets deleted when doing a reinstall / update. This is a bug in one of the early versions of Android 2.2 (froyo). The only workaround is to use a different folder.
junglejet Active Member Licensed User Longtime User Apr 14, 2012 #4 Thank you, Erel, this was my guess, too. I am now on an I9100G with And 2.3.6 and the reinstallationprocedure works fine. Andy Upvote 0
Thank you, Erel, this was my guess, too. I am now on an I9100G with And 2.3.6 and the reinstallationprocedure works fine. Andy