Android Question Run another app and then return

Rusty

Well-Known Member
Licensed User
Longtime User
I am trying to run an app from within my app.
The app is installed and I can create an intent and execute the application, which starts just fine.
However, my app is no longer in foreground and is terminated.
Is there a way to run the new app without killing my old app; and then return to my old app when the new is finished?
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
I have a KIOSK service that continues to run and i have use service.startforeground within it's Create.
This seems to do well.
I'm starting Uber from within my application and it takes the foreground. My kiosk keeps ticking away and if the users taps the BACK button, my ION_Event fires just fine and all is well.
If the user touches the HOME or the "running apps" button (whatever it is called), the foreground UBER app goes to background, but the ION_event doesn't fire at all.
Thus, nothing is in foreground but my app is still running in background.
Is there a way to trap within my app, when the Uber app or any other app has one of these keys tapped or when they lose foreground control?
Thanks
Rusty
 
Upvote 0
Top