Hi Mark,

Thank you so much!



2011/11/19 Mark Murphy <mmur...@commonsware.com>

> On Sat, Nov 19, 2011 at 8:22 AM, Zhihong GUO <gzhh...@gmail.com> wrote:
> > Can anyone tell me what's WebChromeClient for?
>
> It is for events that might be triggered by HTML or JavaScript that
> would affect a browser but (typically) not in the HTML rendering area.
>
> The canonical example is the alert() function in JavaScript -- which
> normally pops up a dialog box in a browser -- triggers onJsAlert() in
> your WebChromeClient. Whether you pop up a dialog, or show a Toast, or
> log this to LogCat, or display it in some status bar, is up to you .
>
> > what's the onShowCustomView for? when it will be called ? can you give an
> > example or user experience on that ?
>
> Most of what I'm seeing on Google points to popping up HTML5 videos:
>
>
> http://stackoverflow.com/questions/4989738/how-to-play-a-video-in-a-webview-with-android/4990544#4990544
>
> http://www.devdaily.com/java/jwarehouse/android/core/java/android/webkit/HTML5VideoViewProxy.java.shtml
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!
>
> --
> 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

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

Reply via email to