public void onCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); //SetContentView(R.layout.pay_result); //布局是可以自定义 api = WXAPIFactory.CreateWXAPI(this, "App_ID"); api.HandleIntent(Intent, this); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.payresult); api = WXAPIFactory.CreateWXAPI(this, Constants.APP_ID); api.HandleIntent(Intent, this); Toast.MakeText(this, PackageName, ToastLength.Long).Show(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); api = WXAPIFactory.CreateWXAPI(this, appID, true); handler = new MyHandler(this); try { Intent intent = this.Intent; bool b = api.HandleIntent(intent, this); } catch (Exception e) { Log.Error(TAG, e.StackTrace); } }
protected override void OnNewIntent(Intent intent) { base.OnNewIntent(intent); this.Intent = intent; api.HandleIntent(intent, this); }