This project is a native YouTube REST API client for Android. It can list and play items on a YouTube channel or playlist.
Open MainActivity.java then go to line 21. Type your channel/playlist ID and the API secret.
ID is either a channel ID or a playlist ID. If you don't know your channel ID, go to your youtube channel from a web browser. You can see your channel ID in the address bar. For example;
https://www.youtube.com/channel/UCD13guCePjrsbFeFC2DxSHg?view_as=subscriber
The channel ID is UCD13guCePjrsbFeFC2DxSHg for this address.
To find out the identity of a playlist, similarly view the playlist in your web browser.You will see playlist ID in the address bar. For example:
https://www.youtube.com/watch?v=AXiJ0O0pZag&list=PLnM9OenV00xlVx8I5hqtarn7cdVMvBM2o
The playlist ID is PLnM9OenV00xlVx8I5hqtarn7cdVMvBM2o for this address.
You must specify the correct option from the YOUTUBE_IDTYPE enum according to the id value you entered.
YouTube is requiring all users that want to view videos outside of YouTubes website to register and create a Project to access the API. In order for you to get the YouTube feed working you need an API Key from https://developers.google.com
Also, I have an Envato item so you can easily create Android apps.
https://codecanyon.net/item/android-app-builder-webview-wordpress-youtube-much-more/25336330