intent.setAction(android.content.Intent.ACTION_VIEW);
Uri.parse(" http://www.youtube.com/watch?v=VIDEO_ID.";);
        intent.setDataAndType(Uri.fromFile(file),
"application/vnd.android.package-archive");
        startActivity(intent);

change uri

2012/2/6 Wiktor Gworek <[email protected]>

> Just fire VIEW intent for YouTube url. That is
> http://www.youtube.com/watch?v=VIDEO_ID.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to