@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentViewWithActionBar(R.layout.activity_login, "登录 | 注册"); // setContentView(R.layout.activity_login); mShareAPI = UMShareAPI.get(this); // 初始化友盟分享 initView(); // 删除授权接口 // mShareAPI.deleteOauth(AuthActivity.this, platform, umdelAuthListener); }
@Override public void handleMessage(Message msg) { super.handleMessage(msg); if (msg.what == 1) { // String s = (String) msg.obj; // // Toast.makeText(LoginActivity.this,s.toString(),Toast.LENGTH_SHORT).show(); } else if (msg.what == 2) { // Map<String, String> map = (Map<String, String>) msg.obj; Toast.makeText(LoginActivity.this, "WXdata:", Toast.LENGTH_SHORT).show(); } }
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); mShareAPI.onActivityResult(requestCode, resultCode, data); // 分享需要 }
@Override protected void onStop() { super.onStop(); }