粗犷海燕

文章
6
资源
0
加入时间
3年1月8天

android调用系统方法分享多图或单图

值content//包名.fileprovider/root_path/storage/emulated/0/jiujinData/文件名字.jpg。无法识别为图片则分享微信提示无法分享多文件。值content//media/external/images/media/74824。测试发现华为鸿蒙系统下分享多图如果不使用第二种则无法识别为图片。如果全部使用第二种uri则不显示图片名称所以目前单独华为使用第二种uri。第二种通过ContentResolver获取uri。2.获取文件uri两种方式。