Android Question Question about ExitApplication and sleep

Discussion in 'Android Questions' started by Scantech, May 2, 2019.

  1. Scantech

    Scantech Well-Known Member Licensed User

    If decide to use ExitApplication, i have this code that i use in Main Pause Userclosed = true

    ExitApplication    'remove this and test it.
    Will sending Message to waiting queue pose an issue? I had to use sleep(0) to allow service to get destroyed.
  2. Erel

    Erel Administrator Staff Member Licensed User

    ExitApplication will not be called. The less things you do in the activity the better. Move this code to a service and it will not be paused.

    With that said, in most cases it is a mistake to call ExitApplication.
    Scantech likes this.
  3. Scantech

    Scantech Well-Known Member Licensed User

    Thanks. I got rid of the ExitApplication
  1. 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.
    Dismiss Notice