External AsyncTask class with ProgressDialog [Update: and returning back?]
问题 **Updated: (See below)**I have been looking around for couple of days and can't find a straight answer to this. Some say it possible to some say to accomplish some say it's not. I am getting crazy on this. What I want is just to have the AsyncTaskTask showing a progressbar an external class. To do this I am passing the context as you can see in the main class. But whatever I try I get NullPointerException . Working code examples is appreciated. Thank you Using Android 2.2 by the way. main: