kernelhcy
8/7/2013 - 5:05 AM

Android获取本地图片

Android获取本地图片

Intent itb = new Intent();
itb.setType("image/*");
itb.setAction(Intent.ACTION_GET_CONTENT);
itb.putExtra("crop", "true");  //选择后对图片进行剪裁
itb.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(capturePicFile));
startActivityForResult(itb, GET_IMAGE_FROM_LOCAL);