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 9232815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:24:12+00:00 2026-06-18T06:24:12+00:00

I am interested in adding and setting up a hard-coded Google Account with a

  • 0

I am interested in adding and setting up a hard-coded Google Account with a given username and password programmatically on the phone without any user intervention.

I have tried using

AccountsManager.addAccountExplicitly(newAccount("xxxxxx@gmail.com","com.google",password,null) 

It works perfectly for all the accountsType except for the com.google accountsType throwing the “uid not matching authenticator
id” exception.

I have already followed all the suggestions given in this particular thread for fixing the error but of no use, the error persists for com.google accounts type

SecurityException: caller uid XXXX is different than the authenticator's uid

The other alternative approach I tried was using the samplesyncadapter code, it works perfectly fine, the authentication part is done in NetworkUtilities file which I believe need to be changed to Google accounts clientlogin

Is there anyway this can be performed directly without user intervention for captcha??

  • 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-18T06:24:13+00:00Added an answer on June 18, 2026 at 6:24 am

    OK after few months, I managed to solve this issue. Might be helpful to someone.

    The solution is not generic but quite specific to emulator/device LCD characteristic and ugly.

    I used MonkeyRunner to issue touch, press and key events at specified screen coordinates to reach Home->Apps->Settings->Accounts and Sync->Add Account->Google->Next->Sign In and so on

    More details about MonkeyRunner can be found here

    http://developer.android.com/tools/help/monkeyrunner_concepts.html

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

Sidebar

Related Questions

I'm interested in adding a Google Maps feature to a program I'm writing. I
I'm interested in adding semi-colon insertion ala Google Go to my flex file. From
I'm an amateur programmer who's interested in adding a click-drag method to the vt320
I'm making a sound for the iPhone and I'm interested in adding background music
I'm interested in adding an HTML/web-browser based log window to my net-enabled device. Specifically,
I'm interested in adding ASP.NET MVC to my skillset. However my reticence comes from
Just interested, if anyone has any sample code, using the UIImagePicker for a cameraview
I've been really interested in adding support for video podcasts to Media Browser. I
I'm interested in what strategies can be used for handling user authentication and authorization
I'm interested in adding to some of my sites the official Tweet button which

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.