Any clever guys know how to get out of the loop?
Sub Activity_Pause (UserClosed As Boolean)
UserCanceled = true
End Sub
Sub LoopTest
Do until UserCanceled = true
doevents
loop
end sub
If it was VB6 or .net no problem. Android is a little tricky for me. I want to stop this loop anytime the user clicks on home or back key. This loop will continue to run in the background and when you try reloading the app, you get blank screen.
How can I stop a loop when User hits the Back/Home Key? Thank you
Sub Activity_Pause (UserClosed As Boolean)
UserCanceled = true
End Sub
Sub LoopTest
Do until UserCanceled = true
doevents
loop
end sub
If it was VB6 or .net no problem. Android is a little tricky for me. I want to stop this loop anytime the user clicks on home or back key. This loop will continue to run in the background and when you try reloading the app, you get blank screen.
How can I stop a loop when User hits the Back/Home Key? Thank you