android-How play youtube video from default application -


i using code load youtube video launching intent let user choose video application use:

startactivity(new intent(intent.action_view, uri.parse("http://www.youtube.com/watchv=cxlg2wte7tm"))); 

by doing able load youtube webpage , user need click play button play video,then video starts play.how can avoid intermediate step.

look @ post maybe android youtube app play video intent

and here official documentation :

https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/package-summary


Comments

Popular posts from this blog

HTTP/1.0 407 Proxy Authentication Required PHP -

curl - PHP fsockopen help required -

c# - Resource not found error -