Hi.
My app shows users short video clips and then opens Google voice recognition so they can repeat what they heard.
problem is, sometimes they haven't heard the clip or are simply not ready, so they press back to go back (since there's no way to 'repeat' or 'cancel' Google VR), but when they do, the app quits and restarts.
how do I make it so going back from Google VR returns control to the app right at that point?
Thanks a lot in advance.
No, unfortunately. The project started a very long time ago, and I was not familiar with B4XPages back then.
So the app won't relaunch if it's using B4XPages?? (I wonder how troublesome it would be to migrate to the modern system...)
It depends on whether the process is actually being killed or not. If it is killed (FirstTime = True) then migrating to B4XPages will not help. You can solve this case with a foreground service. It will prevent Android from killing the process while the app is in the background.
EDIT:
Problem solved. My own mistake. Apparently I had set up the app to exit in case Google VR returns FALSE. I was under the impression that it would mean the VR system isn't working. Apparently FALSE is also returned if the user presses the back button!!
Damn it's so frustrating when you return to your old code after a long time!!