I am trying to create an app in Android that generates number repetitively while the toggle button is on. So, when the user taps the toggle again to turn it off it will stop generating random numbers. But I am not sure if it is possible, because my code keeps on getting a run-time error because of infinite loop. Is it possible to iteratively generate random numbers while toggle button is on?
Aucun commentaire:
Enregistrer un commentaire