As you see in the attached image there is a lock icon in the top right corner.. Which is activated by default during installation.
This lock prevents the app from closing with close all apps button.
You can manually activate this lock by holding the app from recent and drag down..
Then the app willl be locked and will not effected by closing all apps.
I am looking for how to activate this lock with b4a without need to do it manually from the user. As Chrome and YouTube does