I want to get YouTube Videos in Android VideoView for my application. I am going through the Google's YouTube API. I have generated the Client ID,Client Secret,redirect-URL and code by the help of this API Documentation. https://developers.google.com/youtube/2.0/developers_guide_protocol#OAuth2_Installed_Applications_Flow
Next step is to get Access Token for Installed Applications, I am doing the same as the above Doc is explaining but getting this error.
java.io.FileNotFoundException: https://accounts.google.com/o/oauth2/token?code=4/sfsekiMy-EWE_7der69fy3wsdfdsseclient_id=412600012302.apps.googleusercontent.com&client_secret=0P7H4yqRZY2jmpluiyswqnbz&redirect_uri=http://localhost/oauth2callback&grant_type=authorization_code
Any help is highly appreciated OR you can suggest some way to access YouTube video in my Android App using only MediaPlayer and VideoView.
Thanks in advance.