I am writing my first Android application, and I have already encountered an annoying bug on Samsung devices using Android 2.2.1.
http://code.google.com/p/android/issues/detail?id=14359
The problem is that the general settings become unavailable when reinstalling the application, since the settings directory is not deleted, and the new reinstallation does not own the directory. Which leads to a situation where there are many settings saved in shared_pref and user updates of the application, it loses all settings and cannot save the new one.
Since these devices with this version of android are still a big part of the market, and I already know about this error, I would like to find a workaround for this problem.
On root devices, I can execute chown to solve the problem. Does anyone have an idea how to solve it on unloaded devices (without transferring all the settings to the sql database)?
I thought about manually deleting the directory when I still own it, but the problem is when to do it? Is there an intention to uninstall or update the application?
source share