I'm new to Android. I'm trying to write a very simple interval timer app. There are two buttons on the activity, one starts a process. This works fine. The other is supposed to stop the process if clicked, but I can't figure out how to interrupt it. In fact, running on the emulator, it seems to want to ignore any clicking on the Cancel button entirely.
At first I tried to just stop the MediaPlayers, then I tried to create a flag variable and set it. The problem is that once "start()" has been called, it seems to want to ignore any other button clicks. Please help. Thanks.
Edit: Nevermind, I had to create a thread to deal with the timer so control could be returned to the UI.