Android : AsyncTask, how can update ProgressDialog increment
I want to parse a webpage and visual a progressdialog style horizontal and increment it byte to byte, it's possibile ? Try something like this, Create a ProgressDialog. ProgressDialog mProgressDialog = new ProgressDialog(Your_Activity.this); mProgressDialog.setMessage("Here you can set a message"); mProgressDialog.setIndeterminate(false); mProgressDialog.setMax(100); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgressDialog.show(); MyAsyncTask obj = new MyAsyncTask (); obj.execute("url"); Your AsyncTask Class. private class MyAsyncTask extends AsyncTask<String, Integer