I'm having problem with an AsyncTask in my app. I load some dat in doInBackground(), and with that data (contains a link to download an image) I fill a ListView. My idea was to fill the ListView in onPostExecute(), but I can't because the adapter uses a Http connection to download the image and show it.
So, if I put the adapter in onPostExecute() Android tells me that I can't make a network connection in UI main thread. But if I did it doInBackground() it tells me that only the original thread that created a view hierarchy can touch it views.
Any suggestion?