java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed

codedump.io | 2 weeks ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Why does my Activity get destroyed on adding a fragment?

    Stack Overflow | 11 months ago | Timmiej93
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
  2. 0

    Why does my Activity get destroyed upon adding a fragment (#2)?

    Stack Overflow | 11 months ago | Timmiej93
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
  3. 0

    Why does my Activity get destroyed upon adding a fragment (#2)? (Java) - Codedump.io

    codedump.io | 2 weeks ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Setting an icon programmatically causes RuntimeException. What causes this?

    Stack Overflow | 1 year ago | Timmiej93
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.ClassCastException: android.support.design.internal.NavigationMenuPresenter$NavigationMenuSeparatorItem cannot be cast to android.support.design.internal.NavigationMenuPresenter$NavigationMenuTextItem
  6. 0

    Android Fragment - Runtime Exception - Activity has been destroy

    Stack Overflow | 3 years ago | user3563541
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.thomas_smart/com.example.thomas_smart.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed

  1. Indri Yunita 7 times, last 7 days ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 2 months ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
13 unregistered visitors
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.RuntimeException

    Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames