If i update my app with a new version, the sharedPreferences are gone.
LogCat says: Package de.xxx.yyy codePath changed from /data/app/de.xxx.yyy-1.apk to /data/app/de.xxx.yyy-2.apk; Retaining data and using new
The Package is the same as before.
The changes of the manifest-file are:
android:versionCode="6" -> android:versionCode="7"
android:versionName="1.6.000" -> android:versionName="1.8"
and added Permission:
<uses-permission android:name="android.permission.VIBRATE" />
Why the new installation path and the new data? Anybody an idea whats happend?
Update Maybe proguard is the problem. ??? The new sharedPreferences have other end letters.
OLD: de.xxx.yyy.a.f.xml
NEW: de.xxx.yyy.a.h.xml
I get the name from the class.
SharedPreferences mPrefs = activity.getSharedPreferences(
THECLASS.class.getName(), Activity.MODE_PRIVATE);