Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-image pick 无法指定打开手机相册为文件夹 #37

Closed
guoquancaho opened this issue May 8, 2018 · 5 comments
Closed

media-image pick 无法指定打开手机相册为文件夹 #37

guoquancaho opened this issue May 8, 2018 · 5 comments

Comments

@guoquancaho
Copy link

使用Nat.image.pick 打开手机相册 无法指定 setType 'image/' 导致每次打开的是sdcard

@acathur
Copy link
Member

acathur commented May 8, 2018

提供一下硬件信息

@acathur
Copy link
Member

acathur commented May 8, 2018

Same as #38

@acathur acathur closed this as completed May 8, 2018
@guoquancaho
Copy link
Author

小米7 小米 Mix 华为都不可以,每次默认打开的位置都his没有照片的

@acathur
Copy link
Member

acathur commented May 8, 2018

权限是否有提供?

@guoquancaho
Copy link
Author

提供了!
MultiImageSelector createIntent方法:
Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*");
我使用这种方式可以打开相册 选择照片 和 获取路径无法正常工作

源码中的:
Intent intent = new Intent(context, MultiImageSelectorActivity.class);
方式永远打开的是sdcard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants