微信分享不出去。

没跳转到会话界面,api.openWXApp();可以到转到微信,boolean success = api.sendReq(req);返回为true,没有跳转到微信界面,求解

源码为Object localObject = new WXWebpageObject();
((WXWebpageObject) localObject).webpageUrl = Url;
WXMediaMessage localWXMediaMessage = new WXMediaMessage();
localWXMediaMessage.mediaObject = ((WXMediaMessage.IMediaObject) localObject);
localWXMediaMessage.title = title;

    SendMessageToWX.Req req = new SendMessageToWX.Req();
    req.transaction = "webpage" + System.currentTimeMillis();
    req.message = localWXMediaMessage;
    req.scene = SendMessageToWX.Req.WXSceneSession;
    //api = WXAPIFactory.createWXAPI(AppActivity.getActivity(), "wx7b86630a2ae32410", true);
    api.registerApp("wx7b86630a2ae32410");
    //api.openWXApp();
    boolean success = api.sendReq(req);

这是输出打印的04-23 15:04:00.201 14316-14605/com.bigbeargame.csmj I/SendBroadcastPermission: action:com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER, mPermissionType:0
04-23 15:04:00.226 14316-14316/com.bigbeargame.csmj I/AudioManager: abandonAudioFocus
04-23 15:04:00.227 14316-14605/com.bigbeargame.csmj I/CocosAnalytics: ==> onPause()
04-23 15:04:00.227 14316-14605/com.bigbeargame.csmj E/CocosAnalytics: ==> Please init sdk first!
04-23 15:04:00.707 14316-14316/com.bigbeargame.csmj I/SendBroadcastPermission: action:com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER, mPermissionType:0
04-23 15:04:00.747 14316-14316/com.bigbeargame.csmj I/HwPointEventFilter: do not support AFT because of no config
04-23 15:04:00.786 14316-14316/com.bigbeargame.csmj W/WindowDecorActionBar: should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn’t been drawn to screen
04-23 15:04:00.787 14316-14316/com.bigbeargame.csmj W/CfgFilePolicy: No config file found for:/themes/diff/icons
04-23 15:04:00.787 14316-14316/com.bigbeargame.csmj W/CfgFilePolicy: CFG_DIRS length : 10
04-23 15:04:00.821 14316-14321/com.bigbeargame.csmj I/art: Do full code cache collection, code=84KB, data=112KB
04-23 15:04:00.821 14316-14321/com.bigbeargame.csmj I/art: After code cache collection, code=73KB, data=71KB

返回的code为-6