java.lang.RuntimeException

Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.MessagingPreferenceActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web44

  • via Unknown by Marek Wasilewski,
  • via Unknown by Marek Wasilewski,
  • via Stack Overflow by pirezas
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.MessagingPreferenceActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389) at android.app.ActivityThread.access$900(ActivityThread.java:147) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693) Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:223) at android.preference.Preference.getPersistedString(Preference.java:1468) at android.preference.ListPreference.onSetInitialValue(ListPreference.java:294) at android.preference.Preference.dispatchSetInitialValue(Preference.java:1384) at android.preference.Preference.onAttachedToHierarchy(Preference.java:1171) at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:167) at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:108) 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.inflate(GenericInflater.java:326) at android.preference.GenericInflater.inflate(GenericInflater.java:263) at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272) at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1513) at com.android.mms.ui.MessagingPreferenceActivity.loadPrefs(MessagingPreferenceActivity.java:294) at com.android.mms.ui.MessagingPreferenceActivity.onCreate(MessagingPreferenceActivity.java:233) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Aria PahlavanAria Pahlavan
    3 times, last one
    Ranjana DangolRanjana Dangol
    2 times, last one
    BardhBardh
    2 times, last one
    dmitrydmitry
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,