0
我在我的應用程序語句的Android無法啓動視頻活動
Uri uri = Uri.parse(movie1.getMovieWatchLink());
// With this line the Youtube application, if installed, will launch immediately.
// Without it you will be prompted with a list of the application to choose.
uri = Uri.parse("vnd.youtube:"+ uri.getQueryParameter("v"));
Intent intent = new Intent("android.intent.action.VIEW", uri);
VideoActivity.this.startActivity(intent);
我通過YouTube視頻網址
當我運行上面的語句,我不能夠啓動的活動,任何人都可以幫助我嗎?
你有沒有記錄? – AAnkit 2013-03-18 05:44:52
是的,我調試它停止VideoActivity.this.startActivity(intent); – String 2013-03-18 05:45:54
發佈您的VideoActivity代碼.. – Subburaj 2013-03-18 05:52:49