I would like to use the AsyncTask for manage some business logic in my application. What is the best pattern for using the onProgressUpdate(...) me
Solution number one is probably how I would handle it - That is the way of the Android framework. A twist to this solution (and probably how I would handle it, if the AsyncTask couldn't fit into the Activity-class) I would pass a Context as the parameter instead, and then instantiate and show the ProgressDialog in onPreExecute.
Solution number 2 is basicly the same as creating the dialog as an inner class - so you might aswell do that if you go for this one.