I am building an Android
App using Python
and kivy
(kivymd
), and I want to let the user share a YouTube
link directly from YouTube to my app. So when i click share on YouTube my app appears there, with all the other apps like this:
And when the user clicks it, it directs them to the app where the program saves the url into a variable, so that it can do stuff with it. How can I do this?
I found an Answer explaining how to do this:
<activity ...>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:host="www.youtube.com" android:mimeType="text/*" />
</intent-filter>
</activity>
Would i be able to somehow do this in Python
? Im guessing maybe i could use pyjnius
, but im not sure how.