- Dec 12, 2022
- 357
- 2
I know that the below post about services says "Sub Service_Destroy is called when you call StopService".
[H3]
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 activities life cycle Code written in an activity module is paused once the activity...
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.
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]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 activities life cycle Code written in an activity module is paused once the activity...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
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.
برای دیدن لینک ها باید ثبت نام کنید