java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by newszer
, 8 months ago
Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view

Solution icon of github
via GitHub by hyb1996-guest
, 4 months ago
Unable to start activity ComponentInfo{com.stardust.scriptdroid/com.stardust.scriptdroid.ui.edit.EditActivity}: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState()

Solution icon of github
Unable to start activity ComponentInfo{com.stardust.scriptdroid/com.stardust.scriptdroid.ui.edit.EditActivity}: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState()

Solution icon of github
via GitHub by ericbn
, 10 months ago
Unable to start activity ComponentInfo{com.android.email/com.android.email2.ui.MailActivityEmail}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.eliburgi.foodallergydiary/com.eliburgi.foodallergydiary.ui.home.HomeActivity}: java.lang.IllegalArgumentException: 2749 is not a valid index!

Solution icon of github
Unable to start activity ComponentInfo{com.lithium.authproject/com.lithium.authproject.MainActivity}: java.lang.IllegalStateException: You may only initialize Stormpath once!

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.ExampleActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.rufflez.slidingmenuexample/com.rufflez.slidingmenuexample.MainActivity}: java.lang.IllegalStateException: RandomList must be attached to a SherlockFragmentActivity.

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.uy.cocoapp/com.uy.cocoapp.DrawerActivity}: java.lang.IllegalStateException: MainFragment must be attached to a SherlockFragmentActivity.

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microsoft.pdfviewertestapplication/com.microsoft.pdfviewertestapplication.MainActivity}: java.lang.IllegalStateException: DialogFragment can not be attached to a container view
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)

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

4 times, 3 months ago
8 times, 5 months ago
13 times, 11 months ago
46 times, 1 year ago
4 times, 1 year ago
105 more bugmates