Support for other protocols in Android webview

For me the JavaScript thing wasn’t a solution as the HTML is not under my control. So if you need to control this from the application side, then there is a relative simple solution: Derive from WebViewClientand inject the implementation using WebView.setWebViewClient(). All you need to override in your WebViewClientimplementation is the shouldOverrideUrlLoading method as … Read more

Launching app OR app store from Safari?

It’s not possible to check if app is installed from a web page. You could do it inside an other app by checking if your url scheme can be opened using UIApplication’s -canOpenURL: method, but there is no javascript equivalent to this. However, you can use the following workaround: <script language=”javascript”> function open_appstore() { window.location=’http://itunes.com/’; … Read more