I know that the below post about services says "Sub Service_Destroy is called when you call StopService".
But I'm seeing that this Event is not triggered when the OS kills the service under low-memory conditions.
So, is this expected behaivior or is Service_Destroy only gauranteed to be called with just a StopService call?
If this can happen, then I guess my app should not assume any code in this sub will always run when the service stops.
Service Modules
This is an old tutorial. Most of the information here is no longer correct. Basic4android v1.2 adds support for Service modules. Service modules play an important role in the application and process life cycle. Start with this tutorial if you haven't read it before: Android Process and...
www.b4x.com
But I'm seeing that this Event is not triggered when the OS kills the service under low-memory conditions.
So, is this expected behaivior or is Service_Destroy only gauranteed to be called with just a StopService call?
If this can happen, then I guess my app should not assume any code in this sub will always run when the service stops.