how to track an webpage when it is redirected from another web page within a web view in android
<p>I load "www.gmail.com"  in a webview,after login the a new webpage will be loaded i.e. our gmail account page.</p>

<p>I have to track that url when I submit login details and the new webpage is loading,I don't need any hard coded value to redirect to any webpage,I want to get that url when a webpage is loaded from another webpage,how can I achieve this.Please help me.</p>

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

<pre><code> public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    title_text=(TextView)findViewById(R.id.urltxt);
    showWeb=(WebView)findViewById(R.id.webview_details_body);
    showWeb.setWebViewClient(new HelloWeb());
    showWeb.getSettings().setBuiltInZoomControls(true);
    showWeb.getSettings().setLoadWithOverviewMode(true);//show the webpage in fullsize with all info
    showWeb.getSettings().setUseWideViewPort(true);
    WebSettings webSettings = showWeb.getSettings();
    webSettings.setJavaScriptEnabled(true);

    showWebClick();

}
private void showWebClick() {
            showWeb.loadUrl("http://www.gmail.com/");


}


public boolean onKeyDown(int keyCode,KeyEvent event){
    if((keyCode==KeyEvent.ACTION_DOWN)&amp;&amp;showWeb.canGoBack()){
        showWeb.goBack();
        return true;
    }
     return super.onKeyDown(keyCode, event);
    }
public class HelloWeb extends WebViewClient{
    @Override
    public boolean shouldOverrideUrlLoading(WebView vw,String url){
        vw.loadUrl(url);
        s=vw.getUrl();
        title_text.setText( s);
        return super.shouldOverrideUrlLoading(vw, url);
    }
}
</code></pre>

<p>}</p>
