0

I have 4 tabs at top of my application. One tab opens a Url but clicking on the link in that page hides the tabBar which is not required.

protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.news);
        WebView bpBrowser=(WebView) findViewById(R.id.wvBrowser);
        bpBrowser.loadUrl("https://www.google.co.in/");         
}

For any help Thanks

6
  • It will open browser and show contents?? Commented Jul 20, 2012 at 11:24
  • Ya it shows some content but my tabbar is not visible when i surf on some other page. Commented Jul 20, 2012 at 11:26
  • You need to Override Url it will solve :) Commented Jul 20, 2012 at 11:29
  • something like this bpBrowser.setWebViewClient(new WebViewClient()); Commented Jul 20, 2012 at 11:40
  • I applied but when i want to go back to my previous page it finishes my whole application. Commented Jul 20, 2012 at 11:49

1 Answer 1

0

You need to override url bpBrowser.setWebViewClient(new WebViewClient()); check this link for more information about overriding back button in WebView

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.