Android Intent设置类型setType();
来源:互联网 发布:淘宝 软件 编辑:程序博客网 时间:2024/06/07 20:39
android Intent大家都很熟悉了,是连接各大组件的桥梁,调用意图发送短信,彩信,打开指定网页,打开照相机,读取相册图片等等...
这里介绍两个平时用的比较多的两种意图:
一.调用手机默认分享
Intent it = new Intent(Intent.ACTION_SEND);</strong></span>it.putExtra(Intent.EXTRA_TEXT, "分享测试");it.setType("text/plain");startActivity(Intent.createChooser(it, "分享内容到"));</strong></span>
二.读取相册图片
Intent it = new Intent(Intent.ACTION_GET_CONTENT);it.setType("image/*");startActivity(it);</span></strong>
1 0
- Android Intent设置类型setType();
- Android Intent设置类型setType();
- Android 默认分享 Intent设置类型setType();
- Android Intent设置类型setType()-调用手机默认分享和读取相册图片
- android intent.setType("type");的含义
- Android下intent的setdata、settype和setdataandtype函数
- Android中Intent的setData,setType和setDataAndType的用法
- Android下intent的setdata、settype和setdataandtype函数
- android Intent.setType() 过滤图片,返回所有的文件类型
- Android中Intent的setData,setType和setDataAndType的用法
- Android中Intent的setData,setType和setDataAndType的用法
- Android中Intent的setData,setType和setDataAndType的用法
- Android中Intent的setData,setType和setDataAndType的区别
- (转)Android中Intent的setData,setType和setDataAndType的用法
- PHP - Manual手册 - 函数参考 - Variable 变量函数 - settype设置变量的类型
- Intent中的setType,setData,setDataAndType的区别
- Intent setType、setData和setDataAndType的区别
- android Intent打开各种类型文件
- mina iobuffer byte[]、String之间转换
- 最大整数 贪心***
- 每天laravel-20160805| Container -8
- 欢迎使用CSDN-markdown编辑器
- go语言学习2
- Android Intent设置类型setType();
- python装饰器(decorator)
- 跳槽最惨的情况,不看要悲剧!
- JAVA基本数据类型和数据类型转换
- 4.临时构造器
- 链表的回文结构
- ios开发-事件机制
- 有关M Permission的学习
- extjs echarts highcharts 饼图