1.通用资源标志符(Universal Resource Identifier, 简称"URI")。
Uri代表要操作的数据,Android上可用的每种资源 - 图像、视频片段等都可以用Uri来表示。
Uri由三部分组成:Scheme path ID
Scheme有三种格式:content file http
举例:
所有联系人的Uri: content://contacts/people
某个联系人的Uri: content://contacts/people/5
所有图片Uri: content://media/external
某个图片的Uri:content://media/external/images/media/4
HTTP格式的Uri:http:www.baidu.comfile格式的Uri:file:///路径/file名字
2. 获得Uri的方式:
Uri.parse(“string”)
举例:
Uri.parse("file:///" + subapp.getAppFolderName()+ File.separator + subapp.getName());