Android AsyncTask 耗時操作

//執行資料庫操作
new DataBaseTask().execute();
public class DataBaseTask extends AsyncTask<String, String,List<mJson.ResultBean>>{
        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            utils.progressDialog(getString("讀取中..."));
        }

        @Override
        protected List<mJson.ResultBean> doInBackground(String... strings) {
            //doSomething
            return dataList;
        }


        @Override
        protected void onPostExecute(List<mJson.ResultBean> resultBeans) {
            super.onPostExecute(resultBeans);
        
            utils.dialogDismiss();
       
        }
    }