【发布时间】:2012-04-25 06:08:19
【问题描述】:
我有用于启动 android youtube 应用程序的代码
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);
如何强制此应用程序在 android 3.2 中以全屏模式显示视频? 并且不要建议 videoview 和 embed player - 这种方法对我不起作用
【问题讨论】:
标签: android android-intent youtube youtube-api youtube-javascript-api