0
votes

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

1
It will open browser and show contents??Raghav
Ya it shows some content but my tabbar is not visible when i surf on some other page.Tasneem
You need to Override Url it will solve :)Raghav
something like this bpBrowser.setWebViewClient(new WebViewClient());Raghav
I applied but when i want to go back to my previous page it finishes my whole application.Tasneem

1 Answers

0
votes

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