Android YouTube App Video Play Intent

Asked 2 years ago, Updated 2 years ago, 121 views

I created an app that allows you to download YouTube videos from Android. Now what I need is, when I play a video on YouTube, I also download it. To do this, you need to know the Intent that the YouTube app delivers to run the YouTube app. If there is a YouTube app in the emulator, it will be easy to understand. So what I'm curious about is:

android android-intent emulator youtube

2022-09-22 08:29

1 Answers

According to Lemmy, the code below will work on Android devices, but not on emulators.

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));


2022-09-22 08:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.