I searched but didn't find a solution.
I have an infinite game loop running in a thread. It is very very long, so when I exit my app and use while(condition), it will keep going on respectively start another application in Android.
How can I stop it?
Must I check between EVERY method, if the thread got an interrupted-signal?
android loops exit break infinite
closed as off-topic by Zyerah, Gabe Sechan, Raghav Sood, Emmanuel, Alex K Jan 9 '15 at 0:26
This question appears to be off-topic. The users who voted to close gave this specific reason:
If this question can be reworded to fit the rules in the help center, please edit the question.
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Zyerah, Gabe Sechan, Raghav Sood, Emmanuel, Alex K