java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.Arjan.acalculator/com.Arjan.acalculator.MainActivity}: java.lang.ClassCastException: com.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity

Stack Overflow | Arjan Singh | 4 months ago
  1. 0

    Eclipse : Unfortunately (App) has stopped

    Stack Overflow | 4 months ago | Arjan Singh
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.Arjan.acalculator/com.Arjan.acalculator.MainActivity}: java.lang.ClassCastException: com.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity
  2. 0

    Android run time error stating that unable find in manifesto file but I it was added

    Stack Overflow | 3 years ago | user2614247
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.newairways/com.example.newairways.communication}: java.lang.ClassCastException: com.example.newairways.communication cannot be cast to android.app.Activity
  3. 0

    Fragment - Unable to instantiate activity

    Stack Overflow | 3 years ago | RunningWalks
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{app.norman.tennis/app.norman.tennis.fours.AddActivity}: java.lang.ClassCastException: app.norman.tennis.fours.AddActivity cannot be cast to android.app.Activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    class cast exception error

    Stack Overflow | 4 years ago | Priyanka
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ca.jvsh.livewallpaper/ca.jvsh.livewallpaper.LiveWallpaper}: java.lang.ClassCastException: ca.jvsh.livewallpaper.LiveWallpaper cannot be cast to android.app.Activity
  6. 0

    Pass extra intent after capturing image from camera

    Stack Overflow | 2 years ago | Ronak Patel
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.example.android.navigationdrawerexample/com.example.android.mtesapp.EditProfileActivity}: java.lang.NullPointerException

  1. bmacedo 1 times, last 2 weeks ago
  2. VeryRedChris 23 times, last 3 weeks ago
  3. franky li 6 times, last 1 month ago
  4. filpgame 27 times, last 3 weeks ago
  5. ajinkya_w 61 times, last 2 months ago
46 more registered users
43 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.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity

    at android.app.Instrumentation.newActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
    4. android.app.ActivityThread.access$600(ActivityThread.java:122)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:137)
    8. android.app.ActivityThread.main(ActivityThread.java:4340)
    8 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame