In general, the loading of the URL should come last (right now you've
got plugins and Javascript enabled messages being sent to the webcore
after you send a url request).

Is this on Honeycomb or ICS? (I'm guessing ICS due to the 'normal'
errors you posted above). Keep in mind that video needs special
handling in older versions of android (well, in all versions really).
http://code.google.com/p/html5webview/ will work for 2.x, but is out
of date for 3.x/4.x

On Jan 30, 3:34 pm, drenda <daniele.re...@gmail.com> wrote:
> PLease,
> someone has some ideas?
>
> Thanks!
>
> On 29 Gen, 22:38, drenda <daniele.re...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
> > i made a simple example in order to display in my app some youtube's
> > video of a playlist.
> > I created a WebView:
>
> > @Override
> >         public void onCreate(Bundle savedInstanceState) {
> >                 super.onCreate(savedInstanceState);
> >                 try {
> >                         setContentView(R.layout.video);
>
> >                         final WebView webView = (WebView) 
> > findViewById(R.id.video_webview);
> >                         webView.loadUrl(getString(R.string.urlYouTube));
> >                         webView.getSettings().setJavaScriptEnabled(true);
> >                         webView.getSettings().setPluginsEnabled(true);
>
> >                 } catch (Exception e) {
> >                         Log.e("Rubner", e.getMessage());
> >                         e.printStackTrace();
> >                 }
>
> > The webview is render correctly and display the videos of playlist.
> > When you click on a video is displayed the page of the video with play
> > button  but if you click on it the video don't start!!!
>
> > Are raised these errors:
>
> > 01-29 22:37:28.714: W/System.err(5963): Error reading from ./org/
> > apache/harmony/luni/internal/net/www/protocol/data/Handler.class
> > 01-29 22:37:28.934: E/libEGL(5963): call to OpenGL ES API with no
> > current context (logged once per thread)
> > 01-29 22:37:28.934: D/ShaderProgram(5963): couldn't load the vertex
> > shader!
>
> > Any ideas of the problem??
>
> > Thanks

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