Image sometimes fails to correctly decode
I've noticed that sometimes the image can fail to correctly decode.
EXAMPLE: http://i44.tinypic.com/vzcxg2.png (I cut off the top half of the image)
As you can see the bottom half does not show correctly.
I've noticed that in ImageLoader.java if you change
HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
conn.setConnectTimeout(30000);
conn.setReadTimeout(30000);
conn.setInstanceFollowRedirects(true);
InputStream is=conn.getInputStream();
to this:
HttpGet httpRequest = null;
httpRequest = new HttpGet(imageUrl.toURI());
HttpClient httpClient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpClient.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream is = bufHttpEntity.getContent();
the problem goes away.
The solution offered here didn't work for me
It happends sometimes to me too. Usually when cache is getting critical. My question is, is the bitmap size of the grid supposed to be a thumbnail or the full a 800px resolution picture, because on tablets, if i use a 250px one it will be hard to see in the tablet, (assuming the grid is bigger)
any solution?