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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:23:59+00:00 2026-05-16T02:23:59+00:00

For retrieving the accounts (information) in Android versions since 2.0 you can use the

  • 0

For retrieving the accounts (information) in Android versions since 2.0 you can use the AccountManager that has been introduced in Android 2.0.

But now I have the problem I want to maintain compatibility with atleast Android 1.6, is there any way to retrieve account information in Android 1.6?

  • 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-16T02:23:59+00:00Added an answer on May 16, 2026 at 2:23 am
    1. download the framework.jar from:
      http://github.com/android/platform_frameworks_opt_com.google.android/…
      and add it to you build path. this is some sort of an interface to the
      Google device functions.
    2. call the method:

      com.google.android.googlelogin.GoogleLoginServiceHelper.getAccount(Activity activity, int requestCode, boolean requireGoogle);

      where:
      Activity: is your Activity which get the result in the
      onActivityResult()
      requestCode: your code
      requireGoogle: should be true

      EX. GoogleLoginServiceHelper.getAccount(mActivity, 123, true);

    3.override the onActivityResult() like:

     protected void onActivityResult(int requestCode, int resultCode, 
        Intent data) { 
                super.onActivityResult(requestCode, resultCode, data); 
                if(requestCode == 123){ 
                    System.out.println(resultCode); 
                    String key = "accounts"; 
                    System.out.println(key + ":" + 
        Arrays.toString(data.getExtras().getStringArray(key))); 
                    String accounts[] = data.getExtras().getStringArray(key); 
                    if(accounts != null){ 
                       int i = 0; 
                       for(String ac : accounts){  //each account is the full 
        email address registered with this device 
                            System.out.println("ac " + i + "=" + ac); 
                             i++; 
                       } 
                    } 
           } 
    

    original post is here

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

Sidebar

Related Questions

We have a flash retrieving information from an XML file. Right now we are
I have an application that checks multiple email accounts (think Webmail). Because I'm retrieving
When retrieving values from a DataRow is it better to use the column name
need some help with retrieving information+Profile pic from twitter using php , i wanted
Retrieving stuff from the network cannot be done on the UI thread in android.
I've used N2 CMS for a while now, I've just updated to use MVC
retrieving items from table that fall between a date range. the date (db table
I'm writing an Android app that communicates with a website. Any time I hit
I've been experimenting with ASP.Net MVC, and have come across a problem that is
I already posted a question regarding it, but at that time I haven't have

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.