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