- Application no longer is killed on exit. Android does not like apps to kill themselves and will restart them when you don't want them to. Solution was to always have app in memory once started (unless OS decides to kill it). When you think you are exiting the app the app just goes to sleep and shuts everything down (service stopped). This took many many tries to understand how to keep the app from restarting just because you rotated the screen while in settings.
Is this cure worse than the disease?
Error messages like "unfortunately the LEAF Battery app quit"
or something similar...
Usually Android apps do have three kinds of exits, I think:
1. The Return button, where they might completely go away,
or they might remain running in the background, right?
2. The Home button where they are put to "sleep" and can be
woken up (and they resume execution where they left of)
by re-"starting" the app. The system knows it was sleeping.
3. Some internal Exit function where they can completely quit.
The app (before 24h) would appear to Quit nicely, unless the
Settings rotated, presumably starting a second Settings process
without killing the first, or something like that.
Now, with 24h, the app doesn't seem to quit cleanly, at least
the first several times it runs. On the Event, the system seems
to learn how to stop the app... is that possible?
There should be a clean way to Exit an app without
error messages. Maybe it is a bug in B4A?