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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:53:00+00:00 2026-05-31T21:53:00+00:00

I have setup an application to perform syncing with the Android syncing framework. Most

  • 0

I have setup an application to perform syncing with the Android syncing framework. Most of the internals have been taken from the sync adapter demo. I have a very simple question though, when does this app sync? I know that the google services will sync when they receive a network “tickle” is this also the case with services that you have setup to sync?

  • 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-31T21:53:01+00:00Added an answer on May 31, 2026 at 9:53 pm

    As Amorgos mentioned those tickles you mentioned are C2DM push messages. If it is important to sync changes instantly after they are made in the cloud you should think about implementing them. You can go here for more information.

    For requesting a sync operation, the class you have to look at is the ContentResolver. If you want to sync call requestSync(Account account, String authority, Bundle extras) (use it for a sync now button or similar). To sync changes in your ContentProvider you can call

    getContentResolver().notifyChange(CONTENT_URI, null, true);  
    

    after creating/changing the entry (for changes that shouldn’t be synced replace the true with false and no sync will be triggered). If android:supportsUploading in your SyncAdapter’s xml file is set to true, this will automatically trigger a sync. In this case the Bundle in your SyncAdapter contains a Boolean value with the key ContentResolver.SYNC_EXTRAS_UPLOAD which is true. You can use it to just sync local changes to the cloud and not querying anything.

    If you want just to sync each hour use addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency).

    You can also use the ContentResolver to read/set if it should sync or not (the value which is shown in the device settings at accounts & sync). The methods are getIsSyncable(…) and setIsSyncable(…).

    I hope this can help you.

    Edit:
    This also describes the processes really good: Why does ContentResolver.requestSync not trigger a sync?

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

Sidebar

Related Questions

Hi I have a setup project in my application.Setup includes 5 files (a.txt,b.doc etc.)
Setup : I have a Struts web application where I use displaytag elements to
I have a dependency injection container setup in my application and I'm thinking that
I have a Inno Setup project that I want to check if the application
I have created a setup project using Visual Studio 2008. After the application is
I'm using Visual Studio 2008 and have created a setup project for my application.
In my ASP.NET MVC application, I have the following setup: <runtime> <assemblyBinding xmlns=urn:schemas-microsoft-com:asm.v1> <probing
ISS and ASP.NET. In my setup I have a web application that must be
We have an application that uses a dual monitor setup - User A will
So my setup for my web application is that I have a general header

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.