Hi
I was just wondering if I have a touchscreen device that has an onTouchListener, will current execution of a method switch immediately to that listener method when the screen is touched, and could this be used to trigger an interrupted exception of a try catch block.
For example, if I have a method that does something and then reduces a counter of objects in play at the end of itself, then say during this method execution the screen was touched forcing the program to switch to the onTouchListener method (thus missing out adjusting the counter) could I use a try and catch block looking for an InterruptedException to enforce adjusting the counter if this happened?
Many thanks