Thanks mark the alert() method in the html file are working now :) . Now there are two issues in WebView : 1: I am using a <textarea> in the html file that i am loading in WebView , and trying to write in Hindi font in it , but when i try to write Hindi text it displays as symbol ( rectangle symbols like [] ) .
when i do the same in firefox browser on desktop it works fine. any clue how to give support for multiple language in textarea in WebView ? 2: When I am clicking submit and trying to open the value of textarea in alert() method in another java script it doesn't work , does it mean even after using WebChromeClient its applicable only for vurrent loaded html page and not java scripts called from that page ? On Mar 12, 1:46 am, Mark Murphy <mmur...@commonsware.com> wrote: > 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 <kapil.hear...@gmail.com> 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 android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > 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/commonsguyhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en