Android Question catching click events when using a timer and loop

clydebamford

Member
Licensed User
Longtime User
Im sure there will be simple answer to this but while building a simple slideshow I cant seem to catch any events while the code is running. Im using a simple "wait" routine to time the slideshow and i guess this is running the show. When I use a button to try to stop the show it changes color to show its been clicked but it wont seem to run any code from its click event.?
 

mc73

Well-Known Member
Licensed User
Longtime User
In my opinion you should avoid 'wait' routines. Just set your timer to load the sequence of images. This way, your activity's events can still get triggered. If, you truly need to hold the 'wait' subs, you should place a doEvents inside your loop. Still, this should be avoided.
 
Upvote 0
Top