Code example for WebView: Displaying web pages

Methods: getSettingsloadUrlsetInitialScalesetWebViewClient

0
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.library_webview);
		 
        wv = (WebView) findViewById(R.id.webview);
        wv.setWebViewClient(new LibWebViewClient());
         
        wv.getSettings().setJavaScriptEnabled(true);
        wv.loadUrl("http://m.library.illinois.edu/");
        wv.setInitialScale(30);
 
    } 
	 
	@Override 
	public void onStop() { 
		super.onStop(); 
	} 
 
	@Override 
	public boolean onKeyDown(int keyCode, KeyEvent event) {
	    if ((keyCode == KeyEvent.KEYCODE_BACK) && wv.canGoBack()) {