コード例 #1
0
 @Override
 protected void onDestroy() {
   haveDestroy = true;
   handler.destroy();
   activityPool.removeSelf();
   super.onDestroy();
 }
コード例 #2
0
 @Override
 public void onBackPressed() {
   if (doubleClickExitAcpplicationDetector != null) {
     doubleClickExitAcpplicationDetector.click();
   } else {
     super.onBackPressed();
   }
 }
コード例 #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   activityPool = new ActivityPool(this);
   handler =
       new EasyHandler() {
         @Override
         public void handleMessage(Message msg) {
           onHandleMessage(msg);
         }
       };
   InjectContentView injectContentView = getClass().getAnnotation(InjectContentView.class);
   if (injectContentView != null && injectContentView.value() > 0) {
     setContentView(injectContentView.value());
   }
 }
コード例 #4
0
 @Override
 protected Dialog onCreateDialog(int id) {
   super.onCreateDialog(id);
   return ECollegeActivityHelper.createProgressDialog(this);
 }
コード例 #5
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   ECollegeActivityHelper.onCreate(this, savedInstanceState);
 }