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
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.