1/3

Android Assignment

AsyncTask

Please conduct the following tasks alone. For implementation details you can refer to the lecture slides or the Android developer website. Please do not hesitate to ask me or the tutor if you have any questions. Under “Tip” you can find some hints for the task. The “Checklist” specifies what should happen when your implementation is correct.

2/3

Tasks

  1. Use an AsyncTask to update a ProgressBar
3/3

1. Use an AsyncTask to update a ProgressBar

Implement an app with an ProgressBar and a Button. When the Button is clicked, the ProgressBar should gradually update until it is full.

Tip

Write a class that extends AsyncTask and implements the doInBackground() and onProgressUpdate() methods.

Checklist
The ProgressBar gradually updates when the Button is pressed.