私のアプリでは、特定のボタンをクリックしてYouTubeアプリにジャンプし、YouTubeユーザーを表示したいと思います。 http://www.youtube.com/user/punjabiradiousa 。これはどのように可能ですかいくつかのテクニックを提案してください?
回答:
回答№1は1私はYouTubeのビデオを再生するために使用しているこのコード
Matcher matcher = Pattern.compile("http://www.youtube.com/embed/").matcher(mVideoId);
matcher.find()
Intent lVideoIntent = new Intent(
null,
Uri.parse("ytv://" + mVideoId),
MainScreen.mContext,
com.kids.youtube.OpenYouTubePlayerActivity.class);
startActivity(lVideoIntent);
回答№2のための8
それは次のようにします:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/user/punjabiradiousa")));
ここから取得: Android YouTubeアプリPlay Video Intent
回答№3の場合は0
その働き
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("")));