Code example for WebView: Displaying web pages

Methods: getUrlgoBack, x 1

0
	 
   
    public boolean onKeyDown(int keyCode, KeyEvent event)
    { 
        if (keyCode == KeyEvent.KEYCODE_BACK) {       
        	String testUrl = appView.getUrl();
            appView.goBack();
            if(appView.getUrl() == testUrl)
            { 
            	return super.onKeyDown(keyCode, event);
            } 
        } 
         
        if (keyCode == KeyEvent.KEYCODE_MENU) 
        { 
        	appView.loadUrl("javascript:keyEvent.menuTrigger()");
        } 
         
        if (keyCode == KeyEvent.KEYCODE_SEARCH) 
        { 
        	appView.loadUrl("javascript:keyEvent.searchTrigger()");
        } 
         
        return false; 
    } 
	 
Connect your IDE to all the code out there  Get Codota for Java