Sub Activity_KeyPress(KeyCode As Int) As BooleanIf KeyCode = 4Then' the Back key
ProgressDialogHide
ReturnTrue'returns to the Activity instead of closing it.EndIfEndSub
Note, that the Progress Dialog would close upon pressing the back key.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.