How can I loop a program? Do I add code to OnActivity after existing code to make it restart to a certain place in the code?
I have an IF THEN statement, which at the end I want it to goto a portion of the code where it activates the TTS not from very begining where I have a button to start….
Thank you.
Flinx
If you just want a part of the program to execute again, you can just use a
whileloop, or aforloop for a definite number of runs:If you want the actual program to run multiple times, an
AlarmManagerwould probably work the best.