java.lang.RuntimeException

Unable to resume activity {com.nits.londonclubnights/com.nits.londonclubnights.YoutubePlayerActivity}: java.lang.ClassCastException: com.nits.application.AppApplication cannot be cast to com.nits.londonclubnights.Event_Details_Activity

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Stack Overflow by Somnath Pal
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to resume activity {com.nits.londonclubnights/com.nits.londonclubnights.YoutubePlayerActivity}: java.lang.ClassCastException: com.nits.application.AppApplication cannot be cast to com.nits.londonclubnights.Event_Details_Activity at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3028) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) at android.app.ActivityThread.access$800(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) Caused by: java.lang.ClassCastException: com.nits.application.AppApplication cannot be cast to com.nits.londonclubnights.Event_Details_Activity at com.nits.londonclubnights.YoutubePlayerActivity.onResume(YoutubePlayerActivity.java:110) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280) at android.app.Activity.performResume(Activity.java:6096) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.