java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • custom pref getString-android
    via Stack Overflow by user2251234
    ,
  • Android crashing on ListPreference
    via Stack Overflow by pirezas
    ,
    • java.lang.RuntimeException: Unable to create application sk.baka.aedict3.AedictApp: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4394) at android.app.ActivityThread.access$1300(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:224) at android.preference.Preference.getPersistedString(Preference.java:1406) at android.preference.ListPreference.onSetInitialValue(ListPreference.java:278) at android.preference.Preference.dispatchSetInitialValue(Preference.java:1322) at android.preference.Preference.onAttachedToHierarchy(Preference.java:1134) at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163) at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:104) at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:45) at android.preference.GenericInflater.rInflate(GenericInflater.java:488) at android.preference.GenericInflater.rInflate(GenericInflater.java:493) at android.preference.GenericInflater.rInflate(GenericInflater.java:493) at android.preference.GenericInflater.inflate(GenericInflater.java:326) at android.preference.GenericInflater.inflate(GenericInflater.java:263) at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:269) at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:482) at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:441) at sk.baka.aedict3.AedictApp.onCreate(AedictApp.java:113) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) ... 10 more

    Users with the same issue

    Aria Pahlavan
    3 times, last one,
    Ranjana Dangol
    2 times, last one,
    Bardh
    2 times, last one,
    dmitry
    2 times, last one,
    Unknown visitor1 times, last one,