B4X FEED Is it valid for Service_Destroy event to not be called when OS kills service?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Is it valid for Service_Destroy event to not be called when OS kills service? است. این موضوع تا کنون 30 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Is it valid for Service_Destroy event to not be called when OS kills service?
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
30
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
I know that the below post about services says "Sub Service_Destroy is called when you call StopService".

[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.

 

عقب
بالا