Jump to content
Sign in to follow this  

Receiving a shared URL from YouTube on Android

Recommended Posts

I am trying to write a very basic Android app that will receive a share from the YouTube app and show the data in a memo.


I tried basing it on Embarcadero's Receive Intent sample:

https://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Seattle/Object Pascal/Mobile Snippets/AndroidIntents/ReceiveIntent/


The only thing I did to the sample was to change a line in AndroidManifest.template.xml from:


<data android:mimeType="text/pas" />




<data android:mimeType="text/plain" />


However, I'm encountering two issues:


1. After installing the app on an Android device, it isn't listed in the app list.  I can see it on the "application manager" settings page, but not in the main app list.

2. YouTube is not listing the app as an option on the share dialog.


How can I resolve these 2 issues?

Edited by Yaron

Share this post

Link to post

I managed to get the app listed in YouTube by modifying the manifest's intent using:

                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/plain" />


However my app still doesn't show up on the device's app page.

Share this post

Link to post

The problem causing my app not to show was that I had to create a separate "<intent-filter>" block, after doing that it seems to function correctly.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this