java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) Error
问题 Can someone help me understand what is wrong with this code? I want to be able to add all contacts associated with the query to a ArrayList. But using just the 'add' command make the loop apparently override it and make the size 1 again. But using the 'add' method with a index causes this error. 'IndexOutOfBoundsError'. pls. do help me. This the error log. 08-14 21:36:29.893 20439-20439/? E/Zygote﹕ MountEmulatedStorage() 08-14 21:36:29.893 20439-20439/? E/Zygote﹕ v2 08-14 21:36:29.943 20439