I have code for lauch an android youtube application
private String video_id[] = { "gZiKrWSzNBo", "mzpJq23cuKc" };
private final static String YOUTUBE_URL = "http://www.youtube.com/watch?v=";
private final static String YOUTUBE_APP = "com.google.android.youtube";
Intent youtube_intent = new Intent();
youtube_intent.setPackage(YOUTUBE_APP);
youtube_intent.setAction(Intent.ACTION_VIEW);
youtube_intent.setData(Uri.parse(YOUTUBE_URL + video_id[position]
+ PLAYER_PARAMETERS));
startActivity(youtube_intent);
How can I force this application to show video in fullscreen mode in android 3.2?
And don’t suggest videoview and embed player – this methods not working for me
As for YouTube v4.1.47, you can do the following:
It might work on older versions, but I haven’t tested it.