Should I use vnd.youtube:videoID?
Posted
by Felix
on Stack Overflow
See other posts from Stack Overflow
or by Felix
Published on 2010-04-20T16:09:59Z
Indexed on
2010/04/20
16:13 UTC
Read the original article
Hit count: 587
android
|android-intent
While playing around with the emulator, I noticed that when trying to view a YouTube video the browser gives an error saying it can not load the page at vnd.youtube:ngc978y6rCU?some=parameters
. I don't have an Android device, but by this I can suppose that launching a VIEW
intent with the data URI set to vnd.youtube:VIDEO_ID
would launch the default YouTube application and watch that video.
Now, my application has to be able to display YouTube videos. Right now I have a custom-made YouTube activity which does just that, but I'm thinking of:
- Removing my custom activity and just launching a
VIEW
intent with avnd.youtube:VIDEO_ID
Uri, or - Testing whether that
Intent
is available and using it, or, if it's not available, using my custom activity.
Is this a good idea? Does this work at all (as I said I have no Android device, I'll just be borrowing one from a friend to test my final application)? Which way should I go?
© Stack Overflow or respective owner