How to subscribe a user to a youtube channel using an Android app?

Viewed 1591

I am trying to create a Youtube based application and I can't find any information on how to subscribe the users to different channels.

Is it possible to do it? I can find information about how to do it using php but I'm wasting lots of time with no success trying to do it with Android.

2 Answers

Below code will open channel in youtube app.

private  void openChannel(){
  String channelId = "";// put channel id
  Intent intent = YouTubeIntents.createChannelIntent(getContext(),channelId);
  startActivity(intent);
}
Related