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

Stack Overflow | rockers | 3 months ago
  1. 0

    Error in Starting Dialog from Notification

    Stack Overflow | 3 months ago | rockers
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.alarmclocktext/com.example.alarmclocktext.Dialog}: java.lang.ClassCastException: com.example.alarmclocktext.Dialog cannot be cast to android.app.Activity
  2. 0

    cannot be cast to android.app.activity

    Stack Overflow | 2 years ago | Matclick
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.otticafotobenzi/com.otticafotobenzi.rss.RssService}: java.lang.ClassCastException: com.otticafotobenzi.rss.RssService cannot be cast to android.app.Activity
  3. 0

    How to start activity when a link is clicked in webview?

    Stack Overflow | 1 year ago | Anshul Khare
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.apks.mumbaifashion/com.apks.mumbaifashion.MainActivity2}: java.lang.ClassCastException: com.apks.mumbaifashion.MainActivity2 cannot be cast to android.app.Activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cannot be cast to android.app.activity - TecHub

    theplayhub.com | 1 year ago
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.otticafotobenzi/com.otticafotobenzi.rss.RssService}: java.lang.ClassCastException: com.otticafotobenzi.rss.RssService cannot be cast to android.app.Activity

  1. bmacedo 1 times, last 3 weeks ago
  2. VeryRedChris 23 times, last 1 month ago
  3. franky li 6 times, last 1 month ago
  4. filpgame 27 times, last 1 month 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.example.alarmclocktext.Dialog cannot be cast to android.app.Activity

    at android.app.Instrumentation.newActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1061)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2101)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
    4. android.app.ActivityThread.access$800(ActivityThread.java:135)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    6. android.os.Handler.dispatchMessage(Handler.java:102)
    7. android.os.Looper.loop(Looper.java:136)
    8. android.app.ActivityThread.main(ActivityThread.java:5001)
    8 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame