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

PHP Error "Undefined index" -

C# List<> to xml -

php - How to only save new tweets/instagram photos to database? -