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


Solutions on the web

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

Solution icon of web
Unable to resume activity {com.greendield.note/com.greendield.note.EditNote}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Solution icon of web
via badlogicgames.com by Unknown author, 1 year ago
Unable to resume activity {com.aevumlab.wrckb/com.aevumlab.wrckb.WreckingBaller}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1

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

Solution icon of web
via adventuresinqa.com by Unknown author, 1 year ago
Unable to resume activity {com.example.android.notepad/com.example.android.notepad.NoteEditor}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of web
Unable to resume activity {com.tyczj.myapp/com.tyczj.myapp.MainActivity}: java.lang.IllegalArgumentException: bitmap size exceeds 32bits

Solution icon of github
Unable to resume activity {org.andstatus.app/org.andstatus.app.account.AccountSettingsActivity}: java.lang.NullPointerException

Solution icon of github
via GitHub by eileenfan
, 1 month ago
Unable to resume activity {com.github.pires.obd.reader/com.github.pires.obd.reader.activity.MainActivity}: java.lang.NullPointerException

Solution icon of github
Unable to resume activity {org.wordpress.android/org.wordpress.android.ui.stats.StatsActivity}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to resume activity {org.droidtv.skype/org.droidtv.skype.LoggedInComponent.People.AddSearchContactActivity}: java.lang.NullPointerException

Stack trace

java.lang.RuntimeException: Unable to resume activity {AppName.Activities/AppName.Activities.ViewPagerActivity}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:957)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:123)
	at android.app.ActivityThread.main(ActivityThread.java:3683)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0
	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
	at java.util.ArrayList.set(ArrayList.java:484)
	at android.support.v4.app.FragmentStatePagerAdapter.destroyItem(FragmentStatePagerAdapter.java:97)
	at android.support.v4.view.ViewPager.populate(ViewPager.java:415)
	at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:271)
	at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:244)
	at AppName.Activities.ViewPagerActivity.setUpView(ViewPagerActivity.java:36)
	at AppName.Activities.ViewPagerActivity.onStart(ViewPagerActivity.java:28)
	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
	at android.app.Activity.performStart(Activity.java:3791)
	at android.app.Activity.performRestart(Activity.java:3821)
	at android.app.Activity.performResume(Activity.java:3826)
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)

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

Samebug visitor profile picture
Unknown user
Once, 1 month ago
4 times, 2 months ago
Once, 8 months ago
4 times, 8 months ago
Once, 9 months ago
94 more bugmates