String sdpath="/sdcard/file/";
String path="/sdcard/file/"+圖片名字+".png";
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
BitmapFactory.decodeFile(path, opts);
opts.inSampleSize = computeSampleSize(opts, -1, 240*240);
opts.inJustDecodeBounds = false;
Bitmap bm = BitmapFactory.decodeFile(path, opts);
appItem.mAppIcon.setImageBitmap(bm);
截取的部分代碼資料 可以借鑒下下...