没有选择器对话框的Imagepiker

时间:2015-09-29 17:59:55

标签: android image

我像这样调用imagepicker:

                Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
                photoPickerIntent.setType("image/*");
                photoPickerIntent.putExtra("crop", "true");
                photoPickerIntent.putExtra("aspectX", 1);
                photoPickerIntent.putExtra("aspectY", 1);
                photoPickerIntent.putExtra("outputX", Config.image_size/2);
                photoPickerIntent.putExtra("outputY", Config.image_size/2);
                photoPickerIntent.putExtra(MediaStore.EXTRA_OUTPUT, getTempUri());
                photoPickerIntent.putExtra("return-data", true);
                photoPickerIntent.putExtra("outputFormat", Bitmap.CompressFormat.JPEG.toString());
                startActivityForResult(photoPickerIntent, REQ_CODE_PICK_IMAGE);

但我不想要显示选择器对话框,我想使用默认的android gallery App。

任何人都可以帮助我吗?

谢谢。

0 个答案:

没有答案