Add a WebChromeClient implementation to your WebView via
setWebChromeClient(), then override onJSAlert() to do whatever you
want.

On Fri, Mar 11, 2011 at 5:44 AM, Kapil <[email protected]> wrote:
> Hi All,
>         In my application I am using WebView and in that I am using
> javascript alert( ) method but its not working, no pop-up appears.
>
> in my manifest file I have added
>    <uses-permission android:name="android.permission.INTERNET"></uses-
> permission>
>
> and in activity file I have added
>        mWebView = (WebView) findViewById(R.id.webview);
>        mWebView.getSettings().setJavaScriptEnabled(true);
>        mWebView.loadUrl("file:///android_asset/demo.html");
>
>
> In layout xml file I have added
> <WebView
>    android:id="@+id/webview"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
> />
>
>
> Any clue how to enable full Java script in WebView.
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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