Saturday, 28 September 2013

Eclipse LogCat error. What's the point?

Eclipse LogCat error. What's the point?

When I try to open the Activity, I have an error.
In that Activity I collect the names, photos and contact numbers, and set
them in a ListView.
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.amber/com.alice.ContactsActivity}:
java.lang.ArrayIndexOutOfBoundsException: length=5; index=5 at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096)
at android.app.ActivityThread.access$600(ActivityThread.java:138) at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207) at
android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:213) at
android.app.ActivityThread.main(ActivityThread.java:4787) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:511) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) at
dalvik.system.NativeStart.main(Native Method) Caused by:
java.lang.ArrayIndexOutOfBoundsException: length=5; index=5 at
com.alice.Classes.Contact.Add(Contact.java:20) at
com.alice.ContactsActivity.onCreate(ContactsActivity.java:137) at
android.app.Activity.performCreate(Activity.java:5008) at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2035)
... 11 more

No comments:

Post a Comment