So I have a web app where I use a pop up window to display a message if something is not working or just to confirm something. I have made a simple android app on eclipse to use my web app through a web view, the problem I'm facing is that it seem that the web view inside the app does not support pop up windows.... Am I right or is there a way around to display pop up windows inside my app? here is the code I'm using for my web view. thanks for helping in advance.
wvp = (WebView) findViewById(R.id.webView1);
wvp.getSettings().setJavaScriptEnabled(true);
wvp.setWebViewClient(new WebViewClient());
wvp.setInitialScale(1);
wvp.getSettings().setBuiltInZoomControls(true);
wvp.getSettings().setDisplayZoomControls(false);
wvp.getSettings().setUseWideViewPort(true);
So if you have my same problem here is the solution thanks to ksasq
wvp = (WebView) findViewById(R.id.webView1);
wvp.getSettings().setJavaScriptEnabled(true);
wvp.setWebViewClient(new WebViewClient());
wvp.setWebChromeClient(new WebChromeClient());
wvp.setInitialScale(1);
wvp.getSettings().setBuiltInZoomControls(true);
wvp.getSettings().setDisplayZoomControls(false);
wvp.getSettings().setUseWideViewPort(true);
wvp.getSettings().setSupportMultipleWindows(true);
wvp.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
this made the trick to be able to show that message pop up window I was after. enjoy!