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?
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.
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).