Android Question [B4XPages] Question about user closing from task manager.

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
I have noticed that when I close the B4XPages app from android task manager, the app is still working in the background.
If we don't use B4XPages, the activity has the UserClosed parameter at Activity_Pause and when the user closes the app from task manager the value is True.
My question is how to check the UserClosed parameter from B4XPages?
If it doesn't work, is there any way to detect the closing from task manager within B4XPages?

Thank you in advance!
 

vfafou

Well-Known Member
Licensed User
Longtime User
Closing the app with a task manager kills the process.

You don't need to worry about such things. Let the OS do its job.
Hello Erel!
Thank you very much.
My worry is the case that the user accidentally closes the app from task manager. I need to have a flag to be initialized on userclose so the app could ask the server for new data when the user opens the app immediately after closing.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
UserClosed parameter from Activity_Paused has nothing to do with the task manager. It is true when the user clicks on the back key.
Oh, yes! You are right!
Back key is the UserClosed = True.
The real question is how to detect the closing from task manager within B4XPages!!!
 
Upvote 0
Top