PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM23] Doesn't execute closing project
[WM23] Doesn't execute closing project
Débuté par ARV, 24 aoû. 2018 16:07 - 2 réponses
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 24 août 2018 - 16:07
Hi

Like the title of the subject said, on my android Samsung Galaxy J2 pro, when I have my app runing if I press the button that show all of the apps running on that time and then I select close everything my code of closing project (if my app was running on that time) it doesn't execute, but if I press back until my app reach the first window of the project and close then it execute my code

this part of my code it's very important it ends some important functions that I need to execute and updated my server DB, anyone have the same problem?
Do I have to activated some function?
is it there a way to execute this event when the user close the app from that way?

Thanks!

--
Best Regards
Jose
Posté le 24 août 2018 - 16:34
Hi Jose

AFAIK, that is not a close operation done from inside the program, it's
a FORCE close/KILL done externally (by the OS), so no...

However, what you CAN do is use the code area "when going in the
background" that is executed each time your app is loosing the display
to another app or the OS...


Be aware that it will probably not be executed when there is a Force
close/kill, too

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on http://www.fabriceharari.com


On 8/24/2018 8:07 AM, Jose wrote:
Hi

Like the title of the subject said, on my android Samsung Galaxy J2 pro,
when I have my app runing if I press the button that show all of the
apps running on that time and then I select close everything my code of
closing project (if my app was running on that time) it doesn't execute,
but if I press back until my app reach the first window of the project
and close then it execute my code

this part of my code it's very important it ends some important
functions that I need to execute and updated my server DB, anyone have
the same problem? Do I have to activated some function?
is it there a way to execute this event when the user close the app from
that way?

Thanks!

--
Best Regards
Jose
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 24 août 2018 - 17:07
Hi Fabrice

Thanks for the reply!

I see... I will considering using that option instead.
on background updated my server DB of the device it's off and then when it's on foreground change it like actived again maybe like that could help only if I don't use the same event for another thing.

Thanks for the idea!

--
Best Regards
Jose