java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mypackage.myapp/com.mypackage.myapp.Fragment_02}: java.lang.ClassCastException: com.mypackage.myapp.Fragment_02 cannot be cast to android.app.Activity

Stack Overflow | user3560827 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Fragment cannot be cast to an android.app.activity on Notification click

    Stack Overflow | 7 months ago | user3560827
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mypackage.myapp/com.mypackage.myapp.Fragment_02}: java.lang.ClassCastException: com.mypackage.myapp.Fragment_02 cannot be cast to android.app.Activity
  2. 0

    java.lang.RuntimeException: Parcel android.os.Parcel: Unmarshalling unknown type code

    Stack Overflow | 8 months ago | Farbod Salamat-Zadeh
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.satsuware.flashcards/com.satsumasoftware.flashcards.ui.FlashCardActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@d2219e4: Unmarshalling unknown type code 6815860 at offset 200
  3. 0

    Crash on screen rotation with SelectionController.

    GitHub | 1 year ago | aveuiller
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.dkharrat.nexusdialog.sample/com.github.dkharrat.nexusdialog.sample.SimpleExample}: java.lang.ClassCastException: android.widget.TextView$SavedState cannot be cast to android.widget.Spinner$SavedState
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    InstantiationException

    GitHub | 3 years ago | Dream-of-Electric-Sheep
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dream_of_electric_sheep.android.m_parking/com.uservoice.uservoicesdk.activity.ForumActivity}: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.uservoice.uservoicesdk.c.ae: make sure class name exists, is public, and has an empty constructor that is public 1
  6. 0

    NullPointerException in ActivityThread.java

    GitHub | 2 years ago | David-Mulder
    java.lang.RuntimeException: Unable to start activity ComponentInfo{pkmx.lcamera/pkmx.lcamera.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference

  1. rp 1 times, last 2 months ago
  2. dealloc 7 times, last 3 months ago
  3. Alexandru Popa 4 times, last 3 months ago
  4. Stefan Braune 18 times, last 7 months ago
  5. ben.slama.jihed 37 times, last 9 months ago
12 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.ClassCastException

    com.mypackage.myapp.Fragment_02 cannot be cast to android.app.Activity

    at android.app.Instrumentation.newActivity()
  2. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1065)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
    2 frames