July 2015
Beginner to intermediate
600 pages
18h 59m
English
If you poke around within PhotoPageFragment’s WebView, you may stumble upon non-HTTP links. For example, as of this writing, the photo detail page Flickr provides displays an Open in App button. Pressing this button is supposed to launch the Flickr app if it is installed. If it is not installed, the Google Play store should launch and offer the option to install the Flickr app.
However, if you press Open in App, the WebView instead displays error text, as shown in Figure 28.4.
Figure 28.4 Open in app error
This is because you overrode WebViewClient.shouldOverrideUrlLoading(…) to always ...
Read now
Unlock full access