Pierre87 Posted February 13, 2010 Share Posted February 13, 2010 Dans mon applications, j'utilise un système de preferences dont voici un extrait : android:defaultValue="false" android:title="@string/text_enabled" android:key="lol" /> j'ai aussi d'autres péférences de type EditTextPreference Quand je lance mon application, je fait : preferences = PreferenceManager.getDefaultSharedPreferences(this); PreferenceManager.setDefaultValues(this, R.xml.settings, true); Toutes les préférences sont initialisées à leurs valeurs par défaut, comme indiqué dans le fichier XML SAUF les CheckBoxPreference, qui sont stockée sous forme de boolean Elles ne sont pas du tout initialisées A noter que je n'avais pas ce bug sur mon Hero (Android 1.5), mais il est présent sur le Nexus One (Android 2.1) Quote Link to comment Share on other sites More sharing options...
xma Posted February 13, 2010 Share Posted February 13, 2010 Je confirme. A remonter sur le tracker android. Quote Link to comment Share on other sites More sharing options...
Pierre87 Posted February 13, 2010 Author Share Posted February 13, 2010 (edited) rhaaaaaaa j'y connais rien en report de bug je n'ai pas trouvé ou vérifier si ce bug n'a pas déjà été rapporté Edit, j'ai trouvé où chercher, mais je ne l'ai pas trouvé Edited February 13, 2010 by Pierre87 Quote Link to comment Share on other sites More sharing options...
Pierre87 Posted February 14, 2010 Author Share Posted February 14, 2010 Voilà c'est fait http://code.google.com/p/android/issues/detail?id=6641&q=CheckBoxPreference&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.