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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:17:12+00:00 2026-06-04T04:17:12+00:00

I am implementing a syncadapter for an android app and would like to make

  • 0

I am implementing a syncadapter for an android app and would like to make the settings for the account available under the “Accounts & sync” menu. I have seen this done in the DropBox app(as shown below), but I have not been able to find documentation on how to do this. I have the accounted added, just want to add a link to the account settings in this menu.

enter image description here

  • 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-04T04:17:13+00:00Added an answer on June 4, 2026 at 4:17 am

    In your Android Manifest, you should have a section like this to define your account authenticator:

    <service android:name="AccountAuthenticatorService"
     android:exported="true" android:process=":auth">
     <intent-filter>
      <action android:name="android.accounts.AccountAuthenticator" />
     </intent-filter>
     <meta-data android:name="android.accounts.AccountAuthenticator"
      android:resource="@xml/authenticator" />
    </service>
    

    The meta-data tag above should point to an XML file that defines your account, like this:

    <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
        android:accountType="fm.last.android.account"
        android:icon="@drawable/icon"
        android:smallIcon="@drawable/icon"
        android:label="@string/app_name"
        android:accountPreferences="@xml/account_preferences"/>
    

    The android:accountPreferences attribute above points to an XML file that defines your preferences screen, like so:

    <PreferenceScreen
      xmlns:android="http://schemas.android.com/apk/res/android">
        <PreferenceCategory
                android:title="General Settings" />
    
        <PreferenceScreen
            android:key="account_settings"
            android:title="Account Settings"
            android:summary="Sync frequency, notifications, etc.">
            <intent
                android:action="fm.last.android.activity.Preferences.ACCOUNT_SETUP"
                android:targetPackage="fm.last.android"
                android:targetClass="fm.last.android.activity.Preferences" />
        </PreferenceScreen>
    </PreferenceScreen>
    

    The above PreferenceScreen will launch an intent to display a settings screen, but you can also define the settings directly in the XML file.

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

Sidebar

Related Questions

implementing service something similar with tinyurl or bit.ly, I'm would like to expose service
I am implementing a login system for an Android application utilizing the built-in accounts
Implementing a PhoneGap app for Android and iOS, the app is using Facebook Connect
When implementing HTTP services in node.js, there is a lot of sample code like
When implementing a Facebook Canvas app using an iframe the iframe does a post
When implementing a Matrix construct using arrays, which would be more efficient? Using a
When implementing a MessageFactory class to instatiate Message objects I used something like: class
There are usually two services involved with implementing an Android authenticator - the Authentication
When implementing move constructors and move assignment operators, one often writes code like this:
Iam implementing facebook and twitter using sharekit for an iphone app. How can we

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.