I have a list with id's which i'm going to use in URL's, to get some data using HttpConnection. I was trying to use AsyncTask from the loop, but it was a bad idea, because my program crashed with:
java.lang.OutOfMemoryError: Failed to allocate a 124606360 byte allocation with 16777216 free bytes and 103MB until OOM
How to make many connections one after another correctly?