收藏
回答

微信android分享表情?

微信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);



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容