Wednesday, January 23, 2013

[android-developers] Re: how to show popup window in webview

But i dont use Google+ :)

On Wednesday, January 23, 2013 11:47:10 PM UTC+2, bob wrote:

Isn't that what the "g+1" button is?





On Wednesday, January 23, 2013 3:37:48 PM UTC-6, Piren wrote:
There needs to be an Upvote/Like button in these forums :)

On Tuesday, January 22, 2013 5:02:35 PM UTC+2, Nobu Games wrote:
WebView does not have a concept of a floating window. Neither does the stock Android browser or any other Android browser I know of. However you could do the following:

Provide a JavaScript interface method in your app that opens your popup window as a modal dialog which itself contains another WebView. Load in that new WebView the target URL to display.

On Tuesday, January 22, 2013 8:40:34 AM UTC-6, Mr cool wrote:
i have developed web applictaion in android here i need to show the pop inside the webview,
i tried in many way when i using window.open means it open on the same webview or it can load in browser.

 i have done the following settings

    WebSettings settings = Browser.getSettings();  
       settings.setSupportMultipleWindows(false);
       settings.setJavaScriptEnabled(true); 
       Browser.setWebViewClient(new WebViewClient());
            Browser.setWebChromeClient(new WebChromeClient());
            settings.setJavaScriptCanOpenWindowsAutomatically(false);
       settings.setBuiltInZoomControls(true);
       Browser.requestFocusFromTouch();

 but i want show the poplike this do any idea about how to show the popup in side the webview.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment