I have a progessbar in an activity but the Async is in an external .class-File
How do i refer to that progessbar in the async task?
i use a slightly changed version of the AsyncTask from
Download a file with Android, and showing the progress in a ProgressDialog
You can add a setter method in the asyncTask class like this:
then from the activity when creating a new asyncTask just set the progress bar. something like this: