小弟最近做类似微信的东东,但在获取本地图片显示的时候发现一个情况,都是打横显示的。网上找了很久都没有解决方案。请各位高人帮小弟看看。 /**
 * 选择图片
 * @param uri
 */
private void selectPic(Uri uri){//
pathOfPicture = getAbsoluteImagePath(uri);
System.out.println("选中照片============================="+ pathOfPicture);
Log.e("uri", uri.getHost());
ContentResolver cr = this.getContentResolver();
try {
// 选
InputStream is = cr.openInputStream(uri);
Bitmap bitmap = BitmapFactory.decodeStream(is);
ImageView imageView = (ImageView) findViewById(R.id.iv01);
imageView.setImageBitmap(bitmap);

/**
 * 将pathOfPicture上传到服务器中
 */
uploadPhoto();
} catch (Exception e) {
Log.e("Exception", e.getMessage());
}
}