Friday, 15 April 2011

android - onProgressUpdate in Async is not being called -


"postproperty" itemprop = "text">

im getting problem with my progressdialog and (for now) it stops all my async threads onProgressUpdate () When never gets called. OnPreExecute () and doInBackground () runs fine, but I can not get to start the life of me :( code is taken from him mostly onProgressUpdate () function:

and Here's my version of code:

private class createPasswordList2 extends asyncTask & lt; string, integer, long & gt; {@Override protected void onPreExecute () {super.onPreExecute (); Log.v (logtag, "async in: onPreExecute ..."); // ProgressDialog progressDialog = ProgressDialog.show (MainActivity.this, "Wait", "Downloading ..."); // PDialog = New ProgressDialog (reference); pDialog = New ProgressDialog (MainActivity.); PDialog.setMessage ("Decrypting, Please Wait ..."); pDialog.setIndeterminate (False); pDialog.setMax (100); pDialog SetProgressStyle (ProgressDialog.S.TYLE_HORIZONTAL); pDialog.setCancelable (true); PDialog.show (); } @ Override Protected Long Do Inbackground (string ... efu) {int count = 20; Long-sized size = 0; For (int i = 0; i

Any and all help appriciated

Kenneth


No comments:

Post a Comment