這個異常發生在activity的onstop中,沒有自己的代碼,所有的android框架代碼。我不知道發生了什麼!Activity onStop()==>無法停止活動{xxx}:java.lang.IndexOutOfBoundsException:索引:5,大小:5
java.lang.RuntimeException: Unable to stop activity {xxx}: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4380)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4447)
at android.app.ActivityThread.-wrap6(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1562)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:173)
at android.app.ActivityThread.main(ActivityThread.java:6459)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
Caused by: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
at java.util.ArrayList.get(ArrayList.java:411)
at android.view.WindowManagerGlobal.setStoppedState(WindowManagerGlobal.java:597)
at android.app.Activity.performStop(Activity.java:6842)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4375)
... 9 more
java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
at java.util.ArrayList.get(ArrayList.java:411)
at android.view.WindowManagerGlobal.setStoppedState(WindowManagerGlobal.java:597)
at android.app.Activity.performStop(Activity.java:6842)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4375)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4447)
at android.app.ActivityThread.-wrap6(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1562)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:173)
at android.app.ActivityThread.main(ActivityThread.java:6459)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
郵政編碼在哪裏你曾經使用過數組 – Redman
發佈你的onstop代碼 –
你是[使用片段](http://stackoverflow.com/q/26041795/1270789)? –