private WebView wv;
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.infoweblinkview);
wv=(WebView) findViewById(R.id.weblinkview);
wv.setWebViewClient(new WebViewClient());
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl(getString(R.string.infourl));
wv.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String previousUrl = wv.getUrl();
}
});
}
private WebView wv; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.infoweblinkview); wv=(WebView) findViewById(R.id.weblinkview); wv.setWebViewClient(new WebViewClient());
Share
For that, your can override some method in your
WebViewClientclass :Use any of this method as per your requirement, the
String urlgives you the url.