問題如标題:
點選微信/朋友圈分享時,隻會閃一下,并不會跳轉到内容編輯界面
解決方法:
1. 先将apk導出來
這一步很重要,一定是要有keystore的release apk才能進行微信分享。
2. 安裝apk,使用微信簽名工具進行簽名,擷取簽名
https://open.weixin.qq.com/zh_CN/htmledition/res/dev/download/sdk/Gen_Signature_Android.apk
3. 将簽名填到微信開放平台上應用的應用簽名上,在應用詳情——>開發資訊——>修改
4.回到應用,再試一下。
注意:
這樣做有個前提,就是appID和appSecret都需要填對
String appID = "wx72873857e262c6b8";
String appSecret = "7c3a20bba2dfe2b469d392db2f2f7900";
//微信好友
UMWXHandler wxHandler = new UMWXHandler(getActivity(),appID,appSecret);
wxHandler.addToSocialSDK();
//微信朋友圈
UMWXHandler wxCircleHandler = new UMWXHandler(getActivity(),appID,appSecret);
wxCircleHandler.setToCircle(true);
wxCircleHandler.addToSocialSDK();
WeiXinShareContent weixinContent = new WeiXinShareContent();