Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 954 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 954 Bytes

android_youTubeInRecyclerView

Showing and playing Youtube videos in RecyclerView.

  1. First we need to get the SHA-1 fingerprint on your machine using java keytool. Execute the below command in cmd/terminal to get the SHA-1 fingerprint.

On Windows keytool -list -v -keystore "%USERPROFILE%.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

On Linux or Mac keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

  1. Go to Google Developer Console and select or create a new project. (https://console.developers.google.com/)

  2. turn the status ON for YouTube Data API v3.

  3. On the left sidebar, select Credentials and Create new key under Public API acess.

  4. When popup comes asking you to choose platform, select Android Key.

  5. Paste the SHA-1 key and your project’s package name.

  6. Click on create. Now you should see the API KEY on the dashboard.