【发布时间】:2015-02-11 06:31:56
【问题描述】:
我正在使用以下代码来挑选图像。
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
photoPickerIntent.setData(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(Intent.createChooser(photoPickerIntent, getActivity().getResources().getString(R.string.select_picture)), 1);
它工作正常,但它只让我从默认的照片应用程序中选择图像。即使在当今最新的设备中,我也想从“图库”应用程序中挑选图像。即使对于 Lollipop,我也不知道 WhatsApp 是如何做到这一点的。
【问题讨论】:
标签: android android-intent android-camera-intent