Android Question Question about ExitApplication and sleep

Scantech

Well-Known Member
Licensed User
Longtime User
If decide to use ExitApplication, i have this code that i use in Main Pause Userclosed = true

B4X:
            StopService(ComSerial)
            StopService(CommunicationRoutine)
            Sleep(0)
            ExitApplication    'remove this and test it.

Result

Will sending Message to waiting queue pose an issue? I had to use sleep(0) to allow service to get destroyed.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…