How to update the UI during the doInBackground portion of a thread?
===

I have a time consuming task that is taking place in the doInBackground() method, but from within that method, I want to be able to update the progressDialog with percentage data. How can I do this?

    	class GetDataTask extends AsyncTask<Void, Void, Void> {		
		
        @Override
        protected void onPreExecute()
        {
        	mProgressDialog = ProgressDialog.show(getActivity(),Constants.APP_NAME,"Getting data", true);
        }

        @Override
        protected Void doInBackground(Void... params)
        {
            //go get data, update mProgressDialog
            return null;
        }

        @Override
        protected void onPostExecute(Void res)
        {        	
        	
        }
	}