java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.srk97c.elixir/com.example.srk97c.elixir.CameraService}: java.lang.ClassCastException: com.example.srk97c.elixir.CameraService cannot be cast to android.app.Activity

  1. 0

    Taking a photo in the background on click of a button. The app keeps crashing

    Stack Overflow | 2 months ago | Siddhartha rao
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.srk97c.elixir/com.example.srk97c.elixir.CameraService}: java.lang.ClassCastException: com.example.srk97c.elixir.CameraService cannot be cast to android.app.Activity
  2. 0

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

    Stack Overflow | 5 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

    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    AnimationDrawable in fragment Fatal Exception

    Stack Overflow | 3 years ago | rmbdeivis
    java.lang.RuntimeException: Unable to start activity ComponentInfo{lt.deivas.letmeguess/lt.deivas.letmeguess.MainActivity}: java.lang.ClassCastException: lt.deivas.letmeguess.SpiralFragment cannot be cast to lt.deivas.letmeguess.GridFragment

  1. dealloc 7 times, last 1 week ago
  2. Alexandru Popa 4 times, last 2 weeks ago
  3. Stefan Braune 18 times, last 4 months ago
  4. ben.slama.jihed 37 times, last 6 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.example.srk97c.elixir.CameraService 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:2217)
    2 frames