Back to project page VideoExtand.
The source code is released under:
Apache License
If you think the Android project VideoExtand listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (C) 2014 The Android Open Source Project *//from ww w . ja va 2 s . co m * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Auther?yinglovezhuzhu@gmail.com * File: UploadHandler.java * Date?2014?1?3? * Version?v1.0 */ package com.yuninfo.videoextand.uploader; import android.os.Handler; import android.os.Message; import com.yuninfo.videoextand.Config; import com.yuninfo.videoextand.SendCardActivity; import com.yuninfo.videoextand.bean.UploadResp; /** * ??? * @author yinglovezhuzhu@gmail.com */ public class UploadHandler extends Handler { private SendCardActivity mActivity; public UploadHandler(SendCardActivity activity) { this.mActivity = activity; } @Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case Config.YUNINFO_ID_TASK_STARTED: mActivity.onTaskStarted(); break; case Config.YUNINFO_ID_TASK_CANCELED: mActivity.onTaskCanceled(); break; case Config.YUNINFO_ID_TASK_PROGRESS: mActivity.onProgressChanged((Long[]) msg.obj); break; case Config.YUNINFO_ID_TASK_SUCCESSED: mActivity.onTaskSuccess((UploadResp) msg.obj); break; case Config.YUNINFO_ID_TASK_FAILED: mActivity.onTaskFailed(msg.obj.toString()); break; default: break; } } }