title: Upload image from android phone to google photos album directly
body: <p>I've been looking for an API for google photos that will allow me to create an app in android to push up my pictures to a specific album in the cloud.  So far, I've seen two possible solutions:</p>
  
  <p>1) the google drive api - I actually developed a POC last night and got it mostly working but unfortunately I can't specify a a google photos album to send my image to.</p>
  
  <p>2) the old picasaweb api - this one looks more promising but I can't get past validating my credentials.  Here's a google article describing how to set this up, but the setUserCredentials() method on the PicasawebService object is no longer functional (<a href="https://developers.google.com/picasa-web/docs/3.0/developers_guide_java" rel="nofollow noreferrer">https://developers.google.com/picasa-web/docs/3.0/developers_guide_java</a>)</p>
  
  <p>I'd like to keep pursuing option 2 a bit but I can't find a method on that PicasawebService object that will allow me to make subsequent calls using a logged in user account on my phone (either by google sign-in or the AccountPicker intent).  I thought maybe the setUserToken() method would work and I tried plugging in the tokens I've received from both of the above login methods.  I am requesting this in my OAuth2 scope "oauth2:profile email <a href="https://picasaweb.google.com/data/" rel="nofollow noreferrer">https://picasaweb.google.com/data/</a>" which does indeed prompt me and ask if I want to give access to my photos, I just can't figure out how to tie the logged in user account to PicasawebService calls.</p>
  
  <p>if I hit this URL (this URL is in the article I linked above) from a browser where I'm logged into my google account, I see everything I'd expect to see: <a href="https://picasaweb.google.com/data/feed/api/user/username?kind=album" rel="nofollow noreferrer">https://picasaweb.google.com/data/feed/api/user/username?kind=album</a> so I know that the api is still functional, I just can't figure out how to push up my valid credentials in my android app.</p>
  
  <p>any suggestions would be greatly appreciated
  TIA</p>