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


Solutions on the web

Solution icon of web
via JIRA by Łukasz, 1 year ago
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

Solution icon of web
via JIRA by Łukasz, 1 year ago
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

Solution icon of web
via JIRA by Marek Wasilewski, 1 year ago
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

Solution icon of web
via JIRA by Marek Wasilewski, 1 year ago
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

Solution icon of github
Unable to start activity ComponentInfo{com.fantasticfive.shareback/com.fantasticfive.shareback.newshareback.activities.NewMainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.ImageView

Solution icon of web
via JIRA by speak xj7, 1 year ago
Unable to start activity ComponentInfo{com.android.dialer/com.android.dialer.CallDetailActivity}: java.lang.ClassCastException: android.widget.QuickContactBadge cannot be cast to com.android.dialer.widget.DialerQuickContact

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.uziiuzair.tnw/com.uziiuzair.tnw.MainActivity}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Button

Solution icon of github
via GitHub by theScrabi
, 1 year ago
Unable to start activity ComponentInfo{com.namelessdev.mpdroid/com.namelessdev.mpdroid.URIHandlerActivity}: java.lang.ClassCastException: com.namelessdev.mpdroid.URIHandlerActivity cannot be cast to android.support.v7.app.ActionBarActivity

Solution icon of stackoverflow
via Stack Overflow by Kevin
, 11 months ago
Unable to start activity ComponentInfo{com.example.user.foody/com.example.user.foody.RestaurantDetail}: java.lang.ClassCastException: android.widget.TableRow cannot be cast to android.widget.EditText

Solution icon of web
Unable to start activity ComponentInfo{de.mdiener.../de.mdiener...}: java.lang.ClassCastException: com.google.android.gms.maps.model.CameraPosition cannot be cast to com.google.android.gms.maps.model.CameraPosition

Stack trace

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)

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

3 times, 10 months ago
2 times, 1 year ago
2 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago