Tuesday 15 September 2015

android - Youtube intent filter & scheme -


I'm trying to get an intention from the YouTube app. When I share, I should list my app on the app ready to accept this app. But none of these works

  & lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.SEND" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "image / *" /> & Lt; Data Android: mimeType = "Video / *" /> & Lt; Data android: host = "*" Android: scheme = "youtube" /> & Lt; Data android: host = "*" Android: scheme = "vnd.youtube" /> & Lt; / Intent-Filter & gt;   

or view with action

  & lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "image / *" /> & Lt; Data Android: mimeType = "Video / *" /> & Lt; Data android: host = "*" Android: scheme = "youtube" /> & Lt; Data android: host = "*" Android: scheme = "vnd.youtube" /> & Lt; / Intent-Filter & gt;   

Any thoughts about how to send an intention once? Thank you

"itemprop =" text ">

YouTube app sends text / plain register your activity data so that the MIME type As the receiver:

  & lt; Intro-filter & gt; & Lt; Action Android: name = "android.intent.action.SEND" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "text / plain" /> & Lt; / Intent-Filter & gt;    

No comments:

Post a Comment