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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:27:53+00:00 2026-05-27T12:27:53+00:00

This is strictly for testing purposes. I am not building this into an application.

  • 0

This is strictly for testing purposes. I am not building this into an application.

I am trying to log all the user’s saved accounts and passwords

    AccountManager accountManager = AccountManager.get(this);   

    for(Account account : accountManager.getAccounts())
    {
        System.out.println(account.name + " : " + accountManager.getPassword(account));
    }

But I am getting an error

E/AndroidRuntime(11944): java.lang.SecurityException: caller uid XXXXX is different than the authenticator’s uid

I have read this question but it doesn’t really explain how to get around this problem, just to avoid it, at least I think so.

Is there a way around this issue?

Thanks in advance

  • 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-05-27T12:27:54+00:00Added an answer on May 27, 2026 at 12:27 pm

    This happend because you can’t obtain the accounts of a device at this way.
    This only works if you previously add an account to the AccountManager, and you want retrieve it later.

    That’s the reason why is telling you that haven’t got the right permission.

    To know the accounts added in the device should use, for example:

    AccountManager accountManager = AccountManager.get(this);
    Account[] accounts = accountManager.getAccounts();
    accountManager.getUserData(accounts[0], AccountManager.KEY_USERDATA);
    

    Hope it helps.

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

Sidebar

Related Questions

This is strictly an opinion/experience question for research purposes. I was wondering what coding
Disclaimer This is not strictly a programming question, but most programmers soon or later
I know this isn't strictly a programming question but y'all must have experienced this.
I admit this is not strictly a programming question, although I do use my
While this isn't strictly programming related, it's something I've run into as a web
I know that this is strictly seen not a programming question but since it
This is strictly related to the graph algorithm(not SEO or anything). I'm interested in
This isn't strictly a programming question, but I'm asking it here because it's certainly
I know this isn't strictly speaking a programming question but something I always hear
I'm working in DotNetNuke but this doesn't really seem to be strictly a DNN

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.