I have question how to make button to break while loop. I don't have idea that this method exist at all.
For example i have while loop:
while(x==10000){
x++;
}
void onClick(view v){
// break the while loop
}
And i want to make a button, that when i clicked it i break the while loop and get x value. e.g x=9834. Ofc i want this button to most advanced function. I appreciate if you paste me code, how to make it. Thanks a lot for help!