I have a link which contains collection of books (for eg. www.bookstore.com), from which I select one book (with URL www.bookstore.com/book1.epub) which should
You just need to implement WebViewClient
.
Where inside shouldOverrideUrlLoading()
, you will be having current URL:
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO Auto-generated method stub
// Log.d("URL => ", url); // current URL
view.loadUrl(url);
return true;
}
Read more about WebView and WebViewClient => WebView | Android Developer