Back to project page dttv-android.
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.
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(); } }