Re: [android-beginners] Consolidating two SharedPreferences issues.

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 1:58 PM, Bret Foreman wrote: > First SharedPreferences.getInt and SharedPreferences.getFloat are both > throwing ClassCastException. That is because the preferences in question are not integers or floats. The ClassCastException will tell you what the actual type of data is

[android-beginners] Consolidating two SharedPreferences issues.

2010-07-09 Thread Bret Foreman
I've got two different threads going here and it looks like the two issues are related. There's something fundamentally broken in my implementation of SharedPreferences. One thread is entitled "SharedPreferences.getFloat throwing ClassCastException " and the other is "Default values for ListPrefere