Android之打开手机系统相册
1、需求
打开系统相册,获取图片进行扫描操作
2、代码实现
Intent pickIntent = new Intent(Intent.ACTION_PICK,
MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
pickIntent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*");
CaptureActivity.this.startActivityForResult(pickIntent, REQUEST_CODE_PHOTO);
赞 (0)