選擇圖片后不顯示,是怎么回事
private?void?resizePhoto()?{ //?TODO?Auto-generated?method?stub BitmapFactory.Options?opt?=?new?BitmapFactory.Options(); opt.inJustDecodeBounds?=?true; BitmapFactory.decodeFile(mCurrentPhotoStr,?opt); double?ratio?=?Math.max(opt.outWidth?*?1.0d?/?1024f,?opt.outHeight?*?1.0d?/?1024f); opt.inSampleSize?=?(int)?Math.ceil(ratio); opt.inJustDecodeBounds?=?false; mPhotoImg?=?BitmapFactory.decodeFile(mCurrentPhotoStr,?opt); }
各項值都按老師的要求設(shè)置好了
2015-10-24
我的是把if(requestCode == PICK_CODE) 寫成了if(resultCode == PICK_CODE) 改過來就好了
2015-08-08
我的也是。你搞定沒