I have simple html that would popup an alert box. Using WebView to display
the page... the popup does not display.

Any suggestions?

HTML Code:

<html>
<head>
</head>
<body>
<script type="text/javascript">
alert('Hello World!!!');
</script>
</body>
</html>

Activity code:

        super.onCreate(savedInstanceState);
        WebView browser = new WebView(this);
        browser.getSettings().setJavaScriptEnabled(true);
        browser.getSettings().setPluginsEnabled(true);

browser.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        browser.getSettings().setSupportMultipleWindows(true);
        WebChromeClient client = new WebChromeClient();
        browser.setWebChromeClient(client);
        browser.loadUrl("file:///android_asset/popup.htm");
        setContentView(browser);



Kumar    _/|\_
www.saisk.com
[email protected]
"making a profound difference with knowledge and creativity..."

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

Reply via email to