I am trying to log in to you using the following code
MService = new YouTubeService ("nothing", developer_key); // Try the authentication {mService.setUserCredentials (mUsername, mPassword); } Hold (authentication exception e) {log. V (tag, e.trustin ()); }
But I'm getting:
Connect youtube: com.google.gdata.util.AuthenticationException: Error connecting to login URI
This code looks very basic to me and I am not able to understand what I am doing wrong here.
Make sure you have to follow the permissions:
- android Android.permission.GET_ACCOUNTS
- android.permission.USE_CREDENTIALS
- android.permission.MANAGE_ACCOUNTS
Comments
Post a Comment