java.lang.RuntimeException: Unable to resume activity {AppName.Activities/AppName.Activities.ViewPagerActivity}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0

Stack Overflow | kunal khemka | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    Disable Instant run in Android Studio.
    via GitHub by falecci
  2. 0

    Unable to resume activity IndexOutOfBoundsException: Invalid index 0, size is 0

    Stack Overflow | 2 years ago | vankiz
    java.lang.RuntimeException: Unable to resume activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=67536, result=-1, data=Intent { dat=content://media/external/images/media/33276 flg=0x1 }} to activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  3. 0

    android printing : Unable to resume activity IndexOutOfBoundsException: Invalid index 0, size is 0

    blogspot.com | 1 year ago
    java.lang.RuntimeException: Unable to resume activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=67536, result=-1, data=Intent { dat=content://media/external/images/media/33276 flg=0x1 }} to activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ADT: Unable to resume activity IndexOutOfBoundsException: Invalid index 0, size is 0

    blogspot.mx | 1 year ago
    java.lang.RuntimeException: Unable to resume activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=67536, result=-1, data=Intent { dat=content://media/external/images/media/33276 flg=0x1 }} to activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  6. 0

    ADT: Unable to resume activity IndexOutOfBoundsException: Invalid index 0, size is 0

    blogspot.com | 2 years ago
    java.lang.RuntimeException: Unable to resume activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=67536, result=-1, data=Intent { dat=content://media/external/images/media/33276 flg=0x1 }} to activity {com.core.somepackage/com.core.somepackage.SomeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
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.IndexOutOfBoundsException

    Invalid index 2, size is 0

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.set
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
    2. java.util.ArrayList.set(ArrayList.java:484)
    2 frames
  3. Android Support v4
    ViewPager.setCurrentItem
    1. android.support.v4.app.FragmentStatePagerAdapter.destroyItem(FragmentStatePagerAdapter.java:97)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:415)
    3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:271)
    4. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:244)
    4 frames
  4. AppName.Activities
    ViewPagerActivity.onStart
    1. AppName.Activities.ViewPagerActivity.setUpView(ViewPagerActivity.java:36)
    2. AppName.Activities.ViewPagerActivity.onStart(ViewPagerActivity.java:28)
    2 frames
  5. Android Platform
    ActivityThread.performResumeActivity
    1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
    2. android.app.Activity.performStart(Activity.java:3791)
    3. android.app.Activity.performRestart(Activity.java:3821)
    4. android.app.Activity.performResume(Activity.java:3826)
    5. android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
    5 frames