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 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 9 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 | 10 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 | 2 years 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 4 months ago
  2. dealloc 7 times, last 5 months ago
  3. Alexandru Popa 4 times, last 5 months ago
  4. Stefan Braune 18 times, last 9 months ago
  5. ben.slama.jihed 37 times, last 11 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