It appears that the "Hello, WebView" example is broken. On the suggestion of someone on the IRC channel, I removed the override of shouldOverrideUrlLoading()
and everything seems to work swimmingly.
Revised working code:
public class ViewUrl extends Activity {
protected WebView view;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.view_url);
final String url = "http://www.opentable.com/phone/reviews.aspx?rid=2947";
view = (WebView) findViewById(R.id.widget1);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl( url );
view.setWebViewClient( new WebViewClient() ); // probably not necessary if you don't do anything else with the WebViewClient
}
}
Mike
2009-09-08 22:11:52