Android Open Source - dttv-android Data Async Task






From Project

Back to project page dttv-android.

License

The source code is released under:

GNU General Public License

If you think the Android project dttv-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package dttv.app.multithread;
/*w w  w .j  a  v a 2 s .  c o  m*/
import dttv.app.impl.I_Async;
import android.os.AsyncTask;

/**
 * multi-thread for lot of data
 * @author shihx1
 *
 */
public class DataAsyncTask extends AsyncTask<String, Integer, Integer> {
  
  private I_Async mAsync;
  
  public DataAsyncTask(I_Async async) {
    // TODO Auto-generated constructor stub
    this.mAsync = async;
  }
  
  @Override
  protected void onPreExecute() {
    // TODO Auto-generated method stub
    super.onPreExecute();
    mAsync.onPreHandleData();
  }
  
  @Override
  protected Integer doInBackground(String... arg0) {
    // TODO Auto-generated method stub
    mAsync.onHandleData();
    return null;
  }
  
  @Override
  protected void onCancelled() {
    // TODO Auto-generated method stub
    super.onCancelled();
  }
  
  @Override
  protected void onPostExecute(Integer result) {
    // TODO Auto-generated method stub
    super.onPostExecute(result);
    mAsync.onPostHandleData();
  }
}




Java Source Code List

dttv.app.DtPlayer.java
dttv.app.FileBrowserActivity.java
dttv.app.FileShowActivity.java
dttv.app.IndexActivity.java
dttv.app.MainActivity.java
dttv.app.SettingActivity.java
dttv.app.VideoPlayerActivity.java
dttv.app.adapter.FileAdapter.java
dttv.app.compnent.Compnent.java
dttv.app.compnent.MethodPlayerCompnent.java
dttv.app.compnent.PopWindowCompnent.java
dttv.app.impl.ICallBack.java
dttv.app.impl.I_Async.java
dttv.app.impl.I_KeyIntercept.java
dttv.app.impl.I_OnMyKey.java
dttv.app.impl.I_PopWindow.java
dttv.app.model.Item.java
dttv.app.multithread.DataAsyncTask.java
dttv.app.utils.Constant.java
dttv.app.utils.ControlLightness.java
dttv.app.utils.FileUtil.java
dttv.app.utils.Log.java
dttv.app.utils.MultiMediaTypeUtil.java
dttv.app.utils.MusicUtils.java
dttv.app.utils.PlayerUtil.java
dttv.app.utils.SettingUtil.java
dttv.app.utils.TimesUtil.java
dttv.app.utils.VolumeUtil.java
dttv.app.view.SimpleDialog.java
dttv.app.widget.AudioUIFragment.java
dttv.app.widget.EffectWindow.java
dttv.app.widget.FilesUIFragment.java
dttv.app.widget.GlVideoView.java
dttv.app.widget.OnTouchMoveListener.java
dttv.app.widget.SlideTabsFragment.java
dttv.app.widget.VideoUIFragment.java