I have a problem where the back button is closing the app when it should be returning the app to the main display.
The main display includes a button for viewing an address on Google Maps - which is loaded using a webview.
If the user clicks the back button on the phone - it closes the app rather than returning the app to the main screen.
Is there a way to end the webview without closing the main app, without having to create a stand-alone activity? Perhaps by detecting which activity is closing and "if webview then show main" ?
G
The main display includes a button for viewing an address on Google Maps - which is loaded using a webview.
If the user clicks the back button on the phone - it closes the app rather than returning the app to the main screen.
Is there a way to end the webview without closing the main app, without having to create a stand-alone activity? Perhaps by detecting which activity is closing and "if webview then show main" ?
G