Note that there are some explanatory texts on larger screens.

plurals
  1. POhiding url bar creating problem for popup window in webview of android
    primarykey
    data
    text
    <p>I have a simple web view in android. I am accessing some url. I have implemented WebViewClient which takes control from the default android browser, and overridden shouldOverrideUrlLoading. Now when i try to open a popup window, it opens that popup window (well not like a popup) in WebView, but the functions like close or submit doesnt work on that, even though the same thing work on the Android default browser. The problem now is that i want to hide the url bar and all icons like battery etc without implementing WebViewClient. Any one have some ideas?</p> <p>public class Webcall extends Activity {</p> <pre><code>private WebView objWebView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.webxxml); objWebView = (WebView) findViewById(R.id.webView1); objWebView.getSettings().setJavaScriptEnabled(true); objWebView.loadUrl("url that have popup window " );//*check for any site having popup window the popup window will not be able to call parent window*/ objWebView.setWebViewClient(new HelloWebViewClient()); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) &amp;&amp; objWebView.canGoBack()) { objWebView.goBack(); return true; } return super.onKeyDown(keyCode, event); } private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload