java.lang.RuntimeException

Unable to resume activity {com.myapp.app/com.myapp.app.Activities.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7

Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafaelrafael

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

Solutions on the web4266

  • via Stack Overflow by Zia Ur Rehman
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to resume activity {com.myapp.app/com.myapp.app.Activities.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2800) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2829) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1245) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5118) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1584) at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:2842) at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:223) at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:509) at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:498) at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:175) at android.app.Activity.performResume(Activity.java:5367) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2790) ... 10 more

    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

    winer222winer222
    3 times, last one
    Indri YunitaIndri Yunita
    81 times, last one
    Unknown visitor
    Unknown visitorOnce,
    filpgamefilpgame
    4 times, last one
    justCodeitjustCodeit
    Once,
    241 more bugmates