看到README的第一张截图是有拍照的,但是在实际代码中并未有支持拍照的相关配置。
尝试运行了sample之后发现也是不可以的,所以其实是不支持拍照的?
@zzzhoukang
Matisse supports capturing. But this feature is not well tested, so I didn't mention this in README.
You can enable capturing like this:
Matisse.from(MainActivity.this)
....
.capture(true)
.captureStrategy(CaptureStrategy cs)
.forResult(REQUEST_CODE);
You should define a FileProvider in AndroidManifest.xml and a file_paths_public.xml like the sample does.
I will update README after finishing this feature.
在华为手机上拍照功能不使用,拍照返回时有异常
@jackyglony
Roger that!
@jackyglony 能否提供详细信息,我在华为手机测试无异常情况
@jackyglony 没有申请相机权限,自己申请下就好了。
Most helpful comment
@zzzhoukang
Matisse supports capturing. But this feature is not well tested, so I didn't mention this in README.
You can enable capturing like this:
You should define a
FileProviderin AndroidManifest.xml and afile_paths_public.xmllike the sample does.I will update README after finishing this feature.