java.lang.RuntimeException: Unable to resume activity {com.example.manish.planetdelhi/com.example.manish.planetdelhi.MainActivity}: java.lang.ClassCastException: com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment

Stack Overflow | Manish Gupta | 8 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

    Fragment crashing when rotate screen or minimise theapplication

    Stack Overflow | 8 months ago | Manish Gupta
    java.lang.RuntimeException: Unable to resume activity {com.example.manish.planetdelhi/com.example.manish.planetdelhi.MainActivity}: java.lang.ClassCastException: com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment

      at com.example.manish.planetdelhi.MainActivity.AddPlaceFragment()
    2. com.example.manish
      MainActivity.onStart
      1. com.example.manish.planetdelhi.MainActivity.AddPlaceFragment(MainActivity.java:74)
      2. com.example.manish.planetdelhi.MainActivity.onStart(MainActivity.java:80)
      2 frames
    3. Android Platform
      ActivityThread.performResumeActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1194)
      2. android.app.Activity.performStart(Activity.java:5258)
      3. android.app.Activity.performRestart(Activity.java:5314)
      4. android.app.Activity.performResume(Activity.java:5319)
      5. android.app.ActivityThread.performResumeActivity(ActivityThread.java:2797)
      5 frames