Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8294677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:18:28+00:00 2026-06-08T14:18:28+00:00

I am writing an android application, which will access a user (functional account)’s photos.

  • 0

I am writing an android application, which will access a user (functional account)’s photos.
If possible even hard coding the functional account id& password would be fine. No end-user interaction is required.

Not able to use the google data api as android don’t support
So the closest thing I found is this Single-user “installed” client authentication
in Gdata API doc,
To use ClientLogin (also called “Authentication for Installed Applications”), create a PicasawebService object, then invoke the setUserCredentials method to set the user ID and password

PicasawebService myService = new PicasawebService("exampleCo-exampleApp-1"); 
myService.setUserCredentials("liz@gmail.com", "mypassword");

Picasa Service is Not available in the API console.

Meanwhile, when I try to use the OAuth 2.0 it is not availalbe

I wonder Picasa should be quite popular, what is the best way to do such simple access?

official picasa-atom-oauth sample

This is the official picasa-atom-oauth sample I found. There is a customized call-back server class, however seems it is making use of the browser to get the token. Is it possible to hard code the password in it?

I read this similar question, and seems there is also issue on the token.
Did anyone succeed to use "oauth2:https://picasaweb.google.com/data/" as suggested?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:18:29+00:00Added an answer on June 8, 2026 at 2:18 pm

    Finally after googling more examples, the old client login is the way to go.

    I used google api client 1.10.1-beta

      private static String getTokenByAuthenticatingWithClientLogin(HttpTransport transport) throws IOException {
        ClientLogin authenticator = new ClientLogin();
        authenticator.authTokenType = "lh2";
        authenticator.username = "username";
        authenticator.password = "password";
        authenticator.transport = transport;
        return authenticator.authenticate().getAuthorizationHeaderValue();
      }
    

    set the token in headers

    GoogleHeaders headers = new GoogleHeaders();
    headers.setApplicationName("APOD/1.0");
    headers.setGDataVersion("2");
      String token = getTokenByAuthenticatingWithClientLogin(transport);
      headers.setAuthorization(token);
    

    Then use com.google.api.client.http.HttpRequestFactory to construct the request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an android application which purpouse is to determine the user position via
I am writing an android application, which communicates with server when the user logs
I'm writing an Android application which requires the user to login. I have a
I'm writing an Android application which will occasionally need to download a json string
I am writing an android application which uses C2DM. When a user sends some
I am writing an Android application which can enable and disable the Network Data
I am writing an Android application which uses several 3D models. Such a model
I'm writing an Android application, which uses AccountManager to get the token. From an
In Android I am writing an application in which, I would like to capture
I am writing a little application in android which would have a server part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.