选择图片后不显示,是怎么回事
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); }
各项值都按老师的要求设置好了