android 数据分享
来源:互联网 发布:网络时钟同步系统 编辑:程序博客网 时间:2024/05/16 15:01
http://bbs.csdn.net/topics/390029899
通过代码发送文字到新浪微博:
ComponentName cn = new ComponentName("com.sina.weibo", "com.sina.weibo.EditActivity");Intent intent = new Intent(Intent.ACTION_SEND);intent.setComponent( cn );intent.setType("text/plain");intent.putExtra(Intent.EXTRA_TEXT, "mytest");intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startActivity(intent);
通过代码发送图片到新浪微博:
ComponentName cn = new ComponentName("com.sina.weibo", "com.sina.weibo.EditActivity");Intent intent = new Intent(Intent.ACTION_SEND);intent.setComponent( cn );intent.setType("image/");intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File("sdcard/1.png"))); //传输图片或者文件 采用流的方式 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startActivity(intent);
0 0
- android 数据分享
- android 分享数据
- Android学习笔记(十九)分享简单数据
- 分享:Android清除本地数据缓存代码
- 分享:Android清除本地数据缓存代码
- Android 分享 - 向其它 App 发送数据
- Android学习笔记(十九)分享简单数据
- Android学习笔记第二篇--分享数据
- 分享数据
- 【Android Training - 06】分享数据内容 [Lesson 1 - 发送分享的数据到其他App]
- 【Android Training - 06】分享数据内容 [Lesson 1 - 发送分享的数据到其他App]
- android的sqlite导出及数据操作经验分享
- 分享一段Android基于https协议POST数据的代码
- 【Android Training - 06】分享数据内容 [Lesson 0 - 章节概览]
- Android 分享一个SharedPreferences的工具类,方便保存数据
- android 客户端和服务器端数据交互技术分享
- Android开发之sdcard读写数据(源代码分享)
- Android开发之通过CursorAdapter读取数据(源代码分享)
- 你在追求什么?
- 使用 JavaScript 拦截和跟踪浏览器中的 HTTP 请求
- Linux私房菜第五章要点回忆
- linux上编译安装python2.7.5
- ClickableSpan点击链接事件 改超链接颜色
- android 数据分享
- hadoop 未启动datanode
- MIT differential equation---3
- eclipse ide for java ee developers 开发环境搭建(j2ee)
- OpenCv2.4.5实现高斯混合模型的前景分离
- void f(int(&p)[3]){} 和void f(int(*p)[3]){}的区别
- 有用的adb 命令
- linux下 ln 命令的问题
- linux下编译安装zlib