选图从图片库选择
选图的标识
private static final int PICK_PHOTO = 2;
重定向到图片库代码
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent , PICK_PHOTO);//参二:选图的标识
选图从图片库选择
选图的标识
private static final int PICK_PHOTO = 2;
重定向到图片库代码
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent , PICK_PHOTO);//参二:选图的标识