@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; } }
private void showSuccess() { hideLoading(); prepareVideo( AfternoonData.getInstance().getVideoUrl(), AfternoonData.getInstance().getVideoInfo()); }