示例#1
0
 @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);
 }
示例#2
0
 @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();
   }
 }
示例#3
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   mShareAPI.onActivityResult(requestCode, resultCode, data); // 分享需要
 }
示例#4
0
 @Override
 protected void onStop() {
   super.onStop();
 }