Detecting if a page crashes within an Android WebView - android

I have a WebView within my android application that displays a webapp which occasionally will crash if something goes wrong (Like an "Aw snap" Google Chrome crash). I want to detect if this page has crashed, and reload it if it has.
Is there any way to detect if the page within an Android WebView crashes and then reload said page?

Related

React Native webview closes when app goes to background in android?

Hi have an app which opens a webview which works completly fine. I am facing problem when app goes to background it closes the webview and displays the landing screen. I am trying to find a way where I can prevent the app from closing webview in react native. I am using react-native-webview.

Website causing mobile Chrome browser to become non-responsive

I made this website for a client by editing a Bootstrap template and its working fine except that it keeps becoming unresponsive quite frequently.
Functions like zooming in and scrolling are almost always laggy.
What can cause mobile browser to crash(there is a popup in Chrome saying it has become unresponsive do I want to close app)?
Facebook works totally fine on this same device so I am sure it's something to do with my website.

Render Android WebBrowser App with Delphi XE7

I'm developing an Android App with Delphi Xe7. App has a TWebBrowser which loads a normal internet web page like www.lfp.com. The problem I have is that the web page displayed doesn't adjust itself to the TWebBrowser, you have to scroll the page. I would like to show the entire web page, and after that zoom where I like.
Any suggestions?

Admob integration on different Android device

I'm new to Android development and my first application is looking good.
Curious if anyone has ran into problems with admob:
I have a ListFragment that displays a list with ads at the top and bottom of the list. The display is fine and everything runs ok except -
when I click on the ads and after the browser loads up, clicking back does nothing except for "going" back on the browser and it doesn't go back to the app.
Strangely enough this is happening on my Samsung s3 device but not on my HTC device.
This is because Samsung uses their own custom browser (not stock), and its deciding what to do with the back button. I don't think there's anything you can do- their browser has the focus, it gets to decide what to do with all IO. Your app is in the background and doesn't have any say over IO response.

Detect android browser tab switch

I would like to detect when a user switches tabs within the native Android web browser (other web browsers would be a plus). Is there an event that gets raised when this occurs that an outside app can trap or would I have to create my own application with a web view inside if and detect this from within my own custom browser?
I researched the following but to no avail. They were not very relevant to my goal:
Switching tabs but not very Android-specific
Tab-related activity in Android
Switching tabs in Android
My goal is to determine how much time a user spends viewing a particular web page before navigating away or leaving the app completely.

Categories

Resources