Sunday, June 26, 2011

Re: [android-developers] Preferences activity not working in live app

This is what you look for ..."Cause by" ... in your LogCat.

On Sun, Jun 26, 2011 at 1:18 PM, Raghav Sood <raghavsood@gmail.com> wrote:
Caused by: java.lang.ClassCastException: java.lang.Integer
at android.app.ContextImpl$SharedPreferencesImpl.getString(ContextImpl.java:2754)

This tells you you are trying to cast something to an Integer and it's failing. Look up the call stack to find the point at which your code does the call into the preferences. Put a break point there, then debug your app to find what values you are sending / trying to get from the preference to get the bad value.


-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment