0

I am working on an app in which I have a button that I want to onClick redirect to a link of youtube, means on clicking that button youtube should open and video should be played.

Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
user1942697
  • 21
  • 1
  • 5

1 Answers1

1

Intenting Inbuilt YouTube App

Make an intent that resolves to a youtube URL. If the youtube app is installed, it will ask if you want to open in youtube.

Or you can use a youtube-explicit intent, but if the app isn't installed it will cause an error.

Android YouTube app Play Video Intent

Community
  • 1
  • 1
Mgamerz
  • 2,872
  • 2
  • 27
  • 48