<pre name="code" class="java">String mBigImage = URLEncoder.encode(mImageUrl.replace("*", ""), "UTF-8");
String mBigImagePath = LoveHealthConstant.FILE_PATH + "images/" + mBigImage;
File getImage = new File(mBigImagePath);
// 读取uri所在的图片
try {
Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Uri.fromFile(getImage));
mFullImageView.setImageBitmap(bitmap);
Log.v("12345678901234567890123456", bitmap.getHeight() + "/" + bitmap.getWidth());
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
版权声明:本文博客原创文章,博客,未经同意,不得转载。
本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/4684489.html,如需转载请自行联系原作者