示例#1
0
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case Constant.HANDLER_HTTP:
       {
         String ret = (String) msg.obj;
         if (AfternoonData.getInstance().init(ret)) {
           showSuccess();
         } else {
           showError();
         }
       }
       break;
     case Constant.HANDLER_DOWNLOAD:
       prepareVideoEnd((int) msg.obj);
       break;
   }
 }
示例#2
0
 private void showSuccess() {
   hideLoading();
   prepareVideo(
       AfternoonData.getInstance().getVideoUrl(), AfternoonData.getInstance().getVideoInfo());
 }