Intent intent = new Intent();
if (Build.VERSION.SDK_INT < 19) {
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
} else {
intent = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,"image/*");
}
activity.startActivityForResult(intent,1);
android 跳转到系统相册选择图片
猜你喜欢
转载自blog.csdn.net/keep_my_mine/article/details/82497541
今日推荐
周排行