There is no such thing. It is possible that you are not seeing the logs. If you are running in release mode then you need to add #BridgeLogger: True
You can also switch to USB debug mode.
#BridgeLogger: True is already present, the log was showed its activities when app runs normally.
I even add ToastMessageShow at Activity Create sub, but this message and log window showed nothing.
I can reproduced the error. The app use FusedLocationProvider in the service.
Here are the steps that leads to that odd behavior
- Run app with GPS already turn on (App already has permission to access GPS)
- 'created' text appeared in Log windows & ToastmessageShow
- A few second later, manually turn off GPS
- In the service, there is a timer that runs every 30 secs, this timer checks if GPS is on or off
- If GPS is off, show Resolution Dialog to user, after Resolution Dialog showed, click OK to turn on GPS
- wait a few second later, then manually Forced close the app
- Run again the app, this time log window showed nothing & ToastmessageShow didn't show
The app still has a lots of bugs, but this shouldn't caused Activity Create in module Main not executed, right?
If app forced close manually via OS, is the background service also terminated?
This odd behavior looks like the service not terminated.