public class MyTask extends AsyncTask<Params, Progress, Result>{ @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected Result doInBackground(Params... params) { return null; } protected transient void onProgressUpdate(Progress[] values) { }; protected void onPostExecute(Result result) { }; @Override protected void onCancelled() { super.onCancelled(); } protected void onCancelled(Result result) { }; }
String params=""; MyTask myTask=new MyTask(); myTask.execute(params);
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/w2865673691/article/details/46753571