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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:30:49+00:00 2026-05-23T13:30:49+00:00

I have dozen accounts in AccountManager and when add new account Android start synchornizing

  • 0

I have dozen accounts in AccountManager and when add new account Android start synchornizing all accounts. Since there are a lot of them, takes at least 15 seconds to start my synchronization.

Is there any way to stop/cancel synchornization of all accounts when I add new one, so I can call ContentResolver.requestSync and start synchornizing only my account at that moment?

Thanks,

Aleksandar Ilić.

  • 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-23T13:30:50+00:00Added an answer on May 23, 2026 at 1:30 pm

    Sync is intended as a background service. 15 seconds seems like a totally reasonable delay before the start of a sync, especially when adding a new account (should?) be a very infrequent event. Another thought is that if you have a dozen accounts active, you might try to think of how to reduce that count — What do you have so many after all? Multiple accounts at once site?

    Are you worried about first-time setup responsiveness, or do you have some use case that requires you to actually add and remove accounts frequently?
    If the latter, look at just turning ContentResolver.setIsSyncable() on and off for the given content/account pair. When false, the checkbox on the accounts page is greyed out and no sync will occur. That might meet your needs better than creating and destroying the account.

    That said, you can try speeding it up.

    1. manually call ContentResolver.requestSync (Account account, String authority, Bundle extras)
      and look at the extras values defined in ContentResolver. You might try SYNC_EXTRAS_MANUAL and SYNC_EXTRAS_EXPEDITED.

    2. A more extreme case (which might really piss off your users if you screw it up…) would be to save the current state of master sync, and then explicitly disable master sync (ContentResolver.setMasterSyncAutomatically(boolean sync)) and push a synch with SYNC_EXTRAS_MANUAL to override and then restore master sync to its initial state once your sync is finished.

    The question is how to do that… You’d need to kick that off from the account creation code in your app, I would think.

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

Sidebar

Related Questions

Ok I am new to app development I have tried dozen of codes and
I have half a dozen classes which all extend the same abstract class. The
How can I copy all the existing Sybase user's permissions to a new account?
I have a dozen load balanced cloud servers all monitored by Munin. I can
I have about a dozen events to check and all selectors are similarly (iteratively)
I have several dozen objects with an image and a share button on a
I have a dozen configuration properties files for the ant script. These files are
I've working with the slideshow from jQuery Tools, as I have a dozen times
I have couple of dozen pieces of data that I need to save and
I have created a dozen different charts using the chart form wizard in Access

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.