public class WXEntryActivity extends Activity implements IWXAPIEventHandler {
private IWXAPI api;
@Override
public void onCreate(Bundle savedInstanceState {
super.onCreate(savedInstanceState;
ToastUtiltoast(this, "onCreateWXEntryActivity");
api = WXAPIFactorycreateWXAPI(this, BuildConfig.APPID, false;
try {
Intent intent = getIntent();
api.handleIntent(intent, this;
} catch (Exception e) {
e.printStackTrace();
}
Loge("TAG", "--------onCreate22-");
}
@Override
protected void onNewIntent(Intent intent {
super.onNewIntent(intent;
setIntent(intent;
api.handleIntent(intent, this;
}
@Override
public void onReq(BaseReq baseReq {
ToastUtiltoast(this, "onReqWXEntryActivity");
Loge("TAG---------onReq", " sacvsa" + api.handleIntent(getIntent(), this));
}
@Override
public void onResp(BaseResp resp {
ToastUtiltoast(this, "onRespWXEntryActivity");
Loge("TAG", "--------onResp-" + resp.getType());
if (resp.getType() == ConstantsAPI.COMMAND_LAUNCH_WX_MINIPROGRAM) {
WXLaunchMiniProgram.Resp launchMiniProResp = (WXLaunchMiniProgram.Resp) resp;
String extraData = launchMiniProResp.extMsg;
}
}
}
hello,这个问题解决没? @社区技术运营专员-小柿子
遇到了同样的问题,解决了么?
我也遇到同样问题, 能成功拉起但是没有任何回调, 还有个问题是, 如果退出微信账号&后台杀死微信app, 是不能直接拉起小程序的
有报错信息吗?