I’m attempting the second challenge at the end of chapter 30, so I modify the WebViewClient to override shouldOverrideUrlLoading: I log the call, then if the scheme is http or https, return false, otherwise create an intent, call startActivity, and return true.
My problem starts immediately, when I try to log the call before actually doing anything. When I click on an http/https link, no problem, I get a log message. But clicking on the “Install” button gives me nothing.
Now, if I don’t modify the WebViewClient, I get the expected error message about “market://…” when I click “Install”, so the button is clickable in the WebView.
Am I missing something obvious here?