java.lang.OutOfMemoryError
at android.view.ViewGroup.addInArray(ViewGroup.java:3576)
at android.view.ViewGroup.addViewInner(ViewGroup.java:3531)
at android.view.ViewGroup.addView(ViewGroup.java:3380)
In my Application I show the user all the phone contacts and ask the user to select few or all the contacts to be used in our application. I show the user all the contacts at once. No lazy loading or something like this. It working fine if i show them up to 1000 contacts but if there are more than 5000 contacts in the phone and if I try to show them in one go. I am getting OutOfMemoryError. How to solve this issue.