@Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); setIntent(intent); api.handleIntent(intent, this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.entry); // 通过WXAPIFactory工厂,获取IWXAPI的实例 api = WXAPIFactory.createWXAPI(this, Constants.APP_ID, false); payBtn = (Button) findViewById(R.id.goto_pay_btn); payBtn.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(WXEntryActivity.this, PayActivity.class)); finish(); } }); // debug // debug end api.handleIntent(getIntent(), this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pay_result); api = WXAPIFactory.createWXAPI(this, WXConstants.APP_ID_APP); api.handleIntent(getIntent(), this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.activity_com); api = WXAPIFactory.createWXAPI(this, Constants.APP_ID); api.handleIntent(getIntent(), this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.transparent_layout); user = new User(); api = WXAPIFactory.createWXAPI(this, WeiXinConstants.APP_ID, false); api.handleIntent(getIntent(), this); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_weixin); tv = (TextView) findViewById(R.id.wx_res); // 通过WXAPIFactory工厂,获取IWXAPI的实例 api = WXAPIFactory.createWXAPI(this, CommonConstants.WXAPP_ID, false); api.handleIntent(getIntent(), this); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); wxApi = WXAPIFactory.createWXAPI(this, AppConfig.WX_APP_ID, true); wxApi.handleIntent(getIntent(), this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); api = WXAPIFactory.createWXAPI(this, Constants.APP_ID, true); api.handleIntent(getIntent(), this); }