Matisse: 三星S7 Android 7.0 拍照后无法保存

Created on 3 Apr 2018  ·  9Comments  ·  Source: zhihu/Matisse

拍照成功,但是 返回的路径指向文件不存在,应该是没保存

Most helpful comment

@qianshengta 我搞定了 在调用Matisse拍照之前手动在SD卡目录下面创建一个Pictures文件夹就可以把照片存进去了

All 9 comments

@ngreedy 我S8+也是

我小米也是

@qianshengta 拿得到Uri路径但是用ImagView,setImageUri图片显示不上去

@Munccccc 我是转换成path显示的,0.5.0测试版里有个从data里获取path的方法你可以试试看

@qianshengta 我搞定了 在调用Matisse拍照之前手动在SD卡目录下面创建一个Pictures文件夹就可以把照片存进去了

@Munccccc 奇怪 这个Pictures文件夹不是每个手机系统自带的吗?为什么还要自己创建?

@qianshengta S8+ 和Nexus 5X自身并没有

用这个方法获取path: Matisse.obtainPathResult(data)

compile'com.zhihu.android:matisse:0.5.0-alpha4'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mahan3340 picture Mahan3340  ·  4Comments

Vector-SMG picture Vector-SMG  ·  3Comments

Alastor111 picture Alastor111  ·  6Comments

aliondos picture aliondos  ·  3Comments

zybooo1 picture zybooo1  ·  5Comments