YouTubePlaylist
A sample Android application which demonstrates the use of the YouTube Data v3 API.
Install / Use
/learn @akoscz/YouTubePlaylistREADME
YouTubePlaylist
A sample Android application which demonstrates the use of the YouTube Data API v3.
This sample app makes use of the YouTube Data API v3 classes to fetch a YouTube Playlist using the GetPlaylistAsyncTask which then extracts the list of Video's the playlist contains. The list of video's are then presented using a RecyclerView of CardView's in the YouTubeRecyclerViewFragment. The data binding of video details to CardView is handled by the PlaylistCardAdapter.
Picasso is used for downloading and caching the video thumbnail images. And lastly a retained fragment is used to persist the PlaylistVideos datamodel across orientation changes.
Setup
- Register your application with the Google Developer Console.
- Create an "Api Key"
- Edit ApiKey.java and update
YOUTUBE_API_KEYwith your applications "Api Key" - Edit YouTubeActivity.java and update
YOUTUBE_PLAYLISTSwith a list of your YouTube playlists.
NOTE: You MUST have a valid API key for this sample application to work. Remember, when you register your application with the Google Developer Console you need to enable the YouTube Data API.
Dependencies
- androidx.cardview:cardview:1.0.0
- androidx.recyclerview:recyclerview:1.3.2
- androidx.appcompat:appcompat:1.6.1
- com.squareup.picasso:picasso:2.71828
- com.google.apis:google-api-services-youtube:v3-rev20231011-2.0.0
- com.google.http-client:google-http-client-android:1.43.3
- com.google.api-client:google-api-client-android:2.2.0
- com.google.api-client:google-api-client-gson:2.2.0
Screenshots
Phone: Single Column Portrait and Landscape

Tablet: 7" and 9" (sw600) 2 Columns Portrait, 3 Columns Landscape

Tablet: 10" (sw800) 3 Columns Portrait and Landscape

License
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
