Code example for WebView

Methods: getSettingssetInitialScalesetLayoutParamssetWebChromeClient, setVerticalScrollBarEnabled

0
         
        appView.setInitialScale(100);
        appView.setVerticalScrollBarEnabled(false);
         
        WebSettings settings = appView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setJavaScriptCanOpenWindowsAutomatically(true);
        settings.setLayoutAlgorithm(LayoutAlgorithm.NORMAL);
         
 
    	Package pack = this.getClass().getPackage();
    	String appPackage = pack.getName();
    	 
        WebViewReflect.setStorage(settings, true, "/data/data/" + appPackage + "/app_database/");
         
        /* Bind the appView object to the gap class methods */ 
        bindBrowser(appView);
         
        root.addView(appView);                   
        setContentView(root);                        
    } 
	 
	@Override 
    public void onConfigurationChanged(Configuration newConfig) {
      //don't reload the current page when the orientation is changed 
      super.onConfigurationChanged(newConfig);