Click here to Skip to main content
15,843,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Guys, i am working on a app and in this app i want to make a button if someone click on this button so they will subscribe to my youtube channel please help and tell me how can i do this.
Thanks in Advance

What I have tried:

="" android:layout_width="363dp" android:layout_height="51dp" android:id="@+id/button2" android:background="@drawable/youtube" android:height="24px">
Updated 4-Jun-17 14:20pm
[no name] 4-Jun-17 13:42pm    
And what does not work?
Member 9983063 4-Jun-17 13:43pm    
i want code for onclick if someone click on this button so they subsribe my channel
Member 9983063 4-Jun-17 13:44pm    
or is it possible on my app load user will subscribe my channel without clicking any button

1 solution

Adding a button to your layout is only a small part of what you need to do.

To subscribe a user to a YouTube channel, you need to first understand the YouTube API and then use the Subscriptions.insert[^] method.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900