async-onprogressupdate

AlertDialog setmessage not working inside Asynctask

China☆狼群 提交于 2019-12-22 14:16:34
问题 Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown. class DownloadFileFromURL extends AsyncTask<String, String, String> { private AlertDialog.Builder alert; private int progress = 0; /** * Before starting background thread Show Progress Bar Dialog */ @Override protected void onPreExecute() { super.onPreExecute(); alert = new AlertDialog.Builder(context); alert.setTitle(

AlertDialog setmessage not working inside Asynctask

与世无争的帅哥 提交于 2019-12-22 14:16:07
问题 Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown. class DownloadFileFromURL extends AsyncTask<String, String, String> { private AlertDialog.Builder alert; private int progress = 0; /** * Before starting background thread Show Progress Bar Dialog */ @Override protected void onPreExecute() { super.onPreExecute(); alert = new AlertDialog.Builder(context); alert.setTitle(

AlertDialog setmessage not working inside Asynctask

孤街浪徒 提交于 2019-12-06 05:05:57
Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown. class DownloadFileFromURL extends AsyncTask<String, String, String> { private AlertDialog.Builder alert; private int progress = 0; /** * Before starting background thread Show Progress Bar Dialog */ @Override protected void onPreExecute() { super.onPreExecute(); alert = new AlertDialog.Builder(context); alert.setTitle("Downloading.."); alert.setMessage("1"); alert.setCancelable(false); alert.show(); } /** * Downloading file in