android之微信分享音频
来源:互联网 发布:美工电脑是什么意思 编辑:程序博客网 时间:2024/06/01 08:00
android之微信分享音频
代码:
WXMusicObject muObj = new WXMusicObject();muObj.musicUrl = "http://music.baidu.com/song/546920050?pst=sug";WXMediaMessage msg = new WXMediaMessage();msg.mediaObject = muObj;msg.title = "越过山丘";msg.description = "演唱:123456";Bitmap thumBitmap = BitmapFactory.decodeResource(getResources(), android.R.drawable.ic_input_add);msg.thumbData = bitmapToByteArray(thumBitmap, true);SendMessageToWX.Req req = new SendMessageToWX.Req();req.transaction = buildTransction("music");req.message = msg;req.scene = send_friend.isChecked() ? SendMessageToWX.Req.WXSceneTimeline : SendMessageToWX.Req.WXSceneSession;api.sendReq(req);
阅读全文
0 0
- android之微信分享音频
- Android之微信分享
- Android 微信分享(文字、图片、视频、音频、网页)
- android分享之微信分享
- android开发之微信分享小计
- android之微信分享文本
- android之微信分享图片
- Android 分享功能之 微信 图片分享
- android微信分享之视频、URL地址、表情分享
- android微信分享
- Android 微信分享
- android微信分享
- Android: 微信分享
- Android微信分享
- android 微信分享
- Android 微信分享
- Android 微信分享
- Android微信分享
- VM 虚拟机配置NAT模式,连接互联网
- caffe 训练模型时出错 caffe-parallel has a bug: Check failed: proto.SerializeToOstream(&output)
- SDUT 2122-数据结构实验之链表七:单链表中重复元素的删除
- 可扩展ListView
- caffe编译 `make pytest` 出错:`fatal error: 'pyconfig.h' file not found`
- android之微信分享音频
- 代码规范 : 集合处理
- Resource Acquisition Is Initialization(RAII)
- 3.Longest Substring Without Repeating Characters
- MongoDB的基本使用
- poj 2236
- 南阳oj S + T
- R之箱线图
- 设计模式知识连载(26)---模板方法模式: