0

I am using the below code to open URL in in webview of my application. But webview in my application not opening pop-up in my application.

If I try to open the same URL in my phone native browser its displaying pop up window.

My Layout file:

       <WebView
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />

My Java File.

        webView = (WebView) findViewById(R.id.webview);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setWebChromeClient(new WebChromeClient());
        webView.loadUrl(url);

Please let me know what changes I need to do in my app so that It behave same as native browser.

brig
  • 3,721
  • 12
  • 43
  • 61

0 Answers0