Android 微信分享 直接跳转至微信分享
迷茫
迷茫 2017-04-17 13:29:27
0
1
576

集成微信分享时,分享到朋友圈,只能够弹出一个对话框然后分享到微信朋友圈, 而无法 跳转到微信界面去分享到朋友圈。 这种情况 怎么解决。 在官网确实没找到方案
我的代码如下

WXWebpageObject webpage = new WXWebpageObject();
        webpage.webpageUrl = url;
        WXMediaMessage msg = new WXMediaMessage(webpage);
        msg.title = title;
        msg.description = description;
        msg.setThumbImage(ImageUtil.getInstance().getCache(imgUrl, 100, 100));
        SendMessageToWX.Req req = new SendMessageToWX.Req();
        req.transaction = buildTransaction("appdata");
        req.message = msg;
        req.scene = isTimeLine ? SendMessageToWX.Req.WXSceneTimeline : SendMessageToWX.Req.WXSceneSession;
        iwxapi.sendReq(req);
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
Peter_Zhu

It seems like they all use one page now, and then click to follow it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template