Android: Switch Back To Chrome From App
Solution 1:
When your app opens for the start command, kick off a background service and tell it to start, then finish() the activity if you have one - this will return control to the OS which will show the previous activity - chrome
When your app receives the stop command then do the same - send the stop command to your background service, then finish
Android has a couple of service types explained here. Usually you can completely avoid having any activities by starting a service directly from another app if that is an option, but because I think you are using deeplinking functionality from the browser then I suggest an activity with no UI which catches that link and kickstarts the service as explained above
Solution 2:
found this, which works:
super.onBackPressed();
Post a Comment for "Android: Switch Back To Chrome From App"