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

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

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

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