Пример #1
0
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case 0:
       mISplashView.jumpToNextActivity();
       break;
     case 1:
       mISplashView.showNoNetDialog();
       break;
     case 2:
       mISplashView.hideProgressDialog();
       break;
   }
 }
Пример #2
0
 public void doBusiness(Context context) {
   mISplashView.showProgressDialog();
   if (mINetWorkBiz.isNetWorkConnected(context)) {
     handler.sendEmptyMessageDelayed(0, DELAY_TIME);
   } else {
     handler.sendEmptyMessageDelayed(1, DELAY_TIME);
   }
   handler.sendEmptyMessageDelayed(2, DELAY_TIME);
 }