今天项目的bug:
android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/20180121181328.jpg exposed beyond app through ClipData.Item.getUri()
build.gradle中加入:
配置filepaths
files-path代表的根目录: Context.getFilesDir()
external-path代表的根目录: Environment.getExternalStorageDirectory()
cache-path代表的根目录: getCacheDir()
path 代表要共享的目录
name 只是一个标示