当前位置:操作系统 > 安卓/Android >>

android分享到代码

Intent intent=new Intent(Intent.ACTION_SEND);   
intent.setType("text/plain");  //分享的数据类型 
intent.putExtra(Intent.EXTRA_SUBJECT, "subject");  //主题 
intent.putExtra(Intent.EXTRA_TEXT,  "content");  //内容 
startActivity(Intent.createChooser(intent, "title"));  //目标应用选择对话框的标题 


作者“liangoogle”
 

补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,