2017年5月8日 星期一

讓youtbe可以分享播放聯結

http://stackoverflow.com/questions/11178041/android-youtube-share-a-youtube-video-to-my-app

This worked for me. Add this intent filter to your manifest file to make your application appear in the share list of the youtube application.
<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>