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

JIRA | Łukasz | 1 year ago
  1. 0

    When I try to open any text message or create a new one, the app crashes with exception '[CRASH] com.android.mms threw java.lang.ClassCastException' Inner exception: 'java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: 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 com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:2011) 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'

    JIRA | 1 year ago | Łukasz
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
  2. 0

    When I try to open any text message or create a new one, the app crashes with exception '[CRASH] com.android.mms threw java.lang.ClassCastException' Inner exception: 'java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: 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 com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:2011) 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'

    JIRA | 1 year ago | Łukasz
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
  3. 0

    ClassCastException: java.lang.Integer cannot be cast to java.lang.String

    GitHub | 10 months ago | RankoR
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to access sharedpreference from one class to another

    Stack Overflow | 2 years ago | micky
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
  6. 0

    Live wallpaper openGL using SharedPreferences

    Stack Overflow | 2 years ago | micky
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

  1. Aria Pahlavan 3 times, last 2 weeks ago
  2. Ranjana Dangol 2 times, last 5 months ago
  3. Bardh 2 times, last 6 months ago
  4. dmitry 2 times, last 7 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    java.lang.Integer cannot be cast to java.lang.String

    at android.app.SharedPreferencesImpl.getString()
  2. Android Platform
    SharedPreferencesImpl.getString
    1. android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:223)
    1 frame
  3. com.android.mms
    ComposeMessageActivity.onCreate
    1. com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:2011)
    1 frame
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5933)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282)
    3 frames