How to display multiple jsp pages using web view in my single android application?
<p>Hi<br>
How to display multiple jsp pages using web view in my single android application?<br>
I want to display 6 different web pages(jsp pages) in my single android application. How can I do that using WebView?</p>

<p>Here is my code::  </p>

<pre><code>public void onCreate(Bundle savedInstanceState) {         
    super.onCreate(savedInstanceState);       
    this.getWindow().requestFeature(Window.FEATURE_PROGRESS);   
    setContentView(R.layout.main);               
    WebView webView = (WebView) findViewById(R.id.webview);    
    webView.getSettings().setJavaScriptEnabled(true);      
    webView.setWebChromeClient(new WebChromeClient() {    
        public void onProgressChanged(WebView view, int progress) {   
            activity.setTitle("Loading...");  
            activity.setProgress(progress * 100);          
                if(progress == 100) activity.setTitle(R.string.app_name);   
        }           
    });          
    webView.setWebViewClient(new WebViewClient() {   
        @Override             
        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {      
            // Handle the error            
        }                 
        @Override        
        public boolean shouldOverrideUrlLoading(WebView view, String url) {    
            view.loadUrl(url);        
            return true;             
        }         
    });       

    webView.loadUrl("http://ipAddress/HelloJSP/welcome.jsp");  

    webView.loadUrl("http://ipAddress:8080/HelloJSP/helloo.jsp"); 
}
</code></pre>

<p>Regards,<br>
Sneha</p>
