This is a small project to practice using coroutines.
- Clone this project and import it into Android Studio
- Run the app on your device / emulator
- Notice that there are two buttons: one to increase the number shown, and one to start a 5 second timer.
a) When you start the 5 second timer, notice that you can no longer click the button to increase the counter. - Your goal is to use Coroutines so that users can start the timer and still be able to increase the counter. (see solution here: https://github.com/calren/CoroutinesPractice/pull/1/files)
- Now try moving the code to start the timer into a new ViewModel class. (see solution here: https://github.com/calren/CoroutinesPractice/pull/2/files)