java.lang.IllegalStateException: Fragment MainActivityFragment{e7db358} not attached to Activity

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by btimofeev
, 1 year ago
Fragment MainActivityFragment{e7db358} not attached to Activity
via GitHub by hjymandroid
, 9 months ago
Fragment LoginFragment{727f11b} not attached to Activity
via Stack Overflow by tomjung
, 2 years ago
Fragment MainFragment{40d66eb0} not attached to Activity
via Stack Overflow by Prerak Sola
, 11 months ago
Fragment HomeFragment{19909} not attached to Activity
via GitHub by negue
, 1 year ago
Fragment TasksFragment{42061a00} not attached to Activity
via Stack Overflow by Alex.Marinovskiy
, 2 years ago
Fragment MainFragment{426ee278} not attached to Activity
java.lang.IllegalStateException: Fragment MainActivityFragment{e7db358} not attached to Activity
at org.y20k.transistor.MainActivityFragment.selectFromImagePicker(MainActivityFragment.java:482)
at org.y20k.transistor.MainActivityFragment.access$500(MainActivityFragment.java:58)
at org.y20k.transistor.MainActivityFragment$6.onReceive(MainActivityFragment.java:415)
at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.