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 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fragment crashing when rotate screen or minimise theapplication

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