private void shareRoadbook() {
new Share2.Builder(this)
.setContentType(ShareContentType.TEXT)
.setTextContent("http://book.html?id=16")
.setTitle("Share Text")
// .forcedUseSystemChooser(false)
.build()
.shareBySystem();
}
void shareByAndroid(){
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "http://book.html?id=16");
// 比如发送二进制文件数据流内容(比如图片、视频、音频文件等等)
//String filepath = PhotoPickOptions.DEFAULT.imagePath + "clip_1684368148.jpg";
//WXShare.shareFile(this, filepath);
startActivity(Intent.createChooser(sendIntent,"分享路书。。。"));
}
void shareToWeixin(){
WXShare.shareWeb(this, "你的appId",
"http://book.html?id=16", "网页标题", "网页描述",
null);
}
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。