@Override
 protected void onActivityResult(int arg0, int arg1, Intent arg2) {
   super.onActivityResult(arg0, arg1, arg2);
   if (arg2 != null && arg0 == 343 && arg1 == 0) {
     mTabHost.setCurrentTab(0);
   }
 }
 @Override
 protected void onDestroy() {
   Intent intent = new Intent(this, MessageService.class);
   stopService(intent);
   super.onDestroy();
   // 清楚广告资源
   AppConnect.getInstance(this).close();
 }
Example #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_feed_back);
   initViews();
   initEvents();
   init();
 }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
   // GetDistance.location(mApplication,null).start();//开启定位
   UmengUpdateAgent.update(this); // 开启更新检验
   initViews();
   initEvents();
   init();
   GlobalVariable.SetArrayList();
   Intent intent = new Intent(this, MessageService.class);
   startService(intent);
 }
 // 友盟统计
 @Override
 protected void onPause() {
   super.onPause();
   MobclickAgent.onPause(this);
 }