微信android分享表情 【WXEmojiObject】 不好用,分享之后一直是红色警告。求赐教
WXEmojiObject imgObj = new WXEmojiObject();
// 获取bmpData的内存起始位置
// imgObj.emojiPath = path;
// Log.d(TAG, "shareGifToSession: "+imgObj.type());
imgObj.emojiData = imagedata;
WXMediaMessage msg = new WXMediaMessage();
msg.mediaObject = imgObj;
msg.title = title;
msg.description = description;
//设置缩略图
msg.thumbData= thumbimagedata;
//构造一个Req
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "emotion" + System.currentTimeMillis();
req.message = msg;
req.scene = SendMessageToWX.Req.WXSceneSession;
IWXAPI api = WXAPIFactory.createWXAPI(mContext, appId,false);
文档是哪里的呢 目前分享的文档是这个https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Share_and_Favorites/Android.html