大佬博客
按过程首先要选择图片,一下是代码 API
Intent intent
= new Intent();
intent
.setAction(Intent
.ACTION_GET_CONTENT
);
intent
.addCategory(Intent
.CATEGORY_OPENABLE
);
intent
.setType("image/*");
startActivity(intent
);// 启动该活动
其他:
1、ACTION_GET_CONTENT:允许用户选择特定种类的数据,并返回其URI(特殊种类的数据:照一张相片或录一段音)。 2、URI, 全称 (Uniform Resource Indentifier) 统一资源标识符, 用于某一标识某一资源名称的字符串。 3、
转载请注明原文地址: https://mac.8miu.com/read-75833.html