jeudi 11 décembre 2014

[Q] wrong entries in settings sharedPrefs after update topic

12:43






In my settings, i have multiple multiselectlist preference items where the user can choose different courses. So now i changed the array that is associated with the preference item but i saw, while manually viewing the shared prefs xml file, that the old selected value, which doesn't exist in the entries-array of the updated version, is still saved in the particular string set inside shared prefs.
When i view my settings from inside my app, the multiselectlist item has now all entries unchecked, although there is still that old item saved as mentioned before. Even checking new entries doesn't help, it just adds them to the old value inside the string set xml-item.

This is fatal for my app's behaviour, how can i solve that without the user having to clear all his initially saved settings?

--------------------
Phone: Nexus 4
OS: rooted Lollipop LRX21T
Bootloader: unlocked
stock Recovery






Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top