I try to download a picture from URL to SD card/Download. And I try to show its thumbnail in imageview. Now I had below code:
try {
Download(URL); //download pi
From the Shown Code
Try this instead your last 2 lines
Bitmap photo = Bitmap.createScaledBitmap(BitmapFactory.decodeFile(myfile.getPath()),60,60,true);
imageview.setImageBitmap(photo);
And if you have made any objects for Bitmap/String/Stream in your Download()
function free them calling System.gc();
And I hope this will work.