android publishProgress stupid
<p>What is wrong with this class? My progressdialog is shown but stays at 0% then disappears, it never gets percentage updates</p>

<pre><code>public class AsyncLogin extends AbstractAsync {


    public AsyncLogin(Context context, AsyncCallback mAuthcallback) {
        super(context, mAuthcallback);
    }

    @Override
    protected HashMap&lt;String, String&gt; doInBackground(String... args) {
        ...
        publishProgress(50);

        HashMap&lt;String, String&gt; result = html.download();
        publishProgress(75);
        return result;
    }

    protected void onPreExecute() {
        super.onPreExecute();

        this.progressDialog.setMessage(this.context.getString(R.string.please_wait_logging_in));
        this.progressDialog.show();


        publishProgress(25);
    }


    protected void onProgresUpdate(Integer...  progress)
    {
        super.onProgressUpdate(progress);
        Log.v("max", "set progress" + progress[0]);
        this.progressDialog.setProgress(progress[0]);
    }

    protected void onPostExecute(HashMap map) {
        ...
    }

}


abstract class AbstractAsync extends AsyncTask &lt;String, Integer, HashMap&gt;{


    protected Context context;
    protected ProgressDialog progressDialog;
    protected AsyncCallback mAuthcallback;

    public AbstractAsync(Context context, AsyncCallback mAuthcallback) {
        this.context = context;
        this.mAuthcallback = mAuthcallback;

        progressDialog = new ProgressDialog(context);
        progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
        progressDialog.setCancelable(false);
        progressDialog.setProgress(0);
    }


    protected void onPreExecute()
    {
        super.onPreExecute();
        progressDialog.setMessage(context.getString(R.string.loadingSomething).toString());
        //dialog.show();
    }

    protected void onProgresUpdate(Integer...  progress)
    {
        super.onProgressUpdate(progress);
        Log.v("max", "set progress" + progress[0]);
        progressDialog.setProgress(progress[0]);
    }


    protected void onPostExecute(HashMap result)
    {
        super.onPostExecute(result);
        progressDialog.dismiss();
    }

}
</code></pre>

<p>The log never writes anything</p>
