📜  选择图像 java 代码示例

📅  最后修改于: 2022-03-11 14:52:38.403000             🧑  作者: Mango

代码示例1
private void chooseImage() {
    Intent intent = new Intent();
    intent.setType("image/*");
    intent.setAction(Intent.ACTION_GET_CONTENT);
    startActivityForResult(Intent.createChooser(intent, "Select Picture"), PICK_IMAGE_REQUEST);
  }