ClassCastException in PreferenceActivity

前端 未结 3 1418
野的像风
野的像风 2020-12-20 20:07

I am trying to get an example from the Android 2 Application Development book by Reto Meier to work (page 202). As per the instructions I have created a userpreferences.xml

3条回答
  •  执笔经年
    2020-12-20 20:16

    I had the same problem - the user preference data from the previous example in the book used different data types when saving the preference data.

    The solution is to simply check the 'clear user data' checkbox when starting the AVD to get rid of the old user preferences.

提交回复
热议问题