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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:36:47+00:00 2026-05-26T23:36:47+00:00

I have my own ContentProvider and SyncAdapter which both work fine. I set them

  • 0

I have my own ContentProvider and SyncAdapter which both work fine.

I set them to be automatically synced with ContentResolver.setSyncAutomatically() an this work. I can also test the sync with Dev Tools -> Sync Tester.

Now I would like to request a sync from my app (if we have no data yet) and be notified when it finishes, so I can updated the interface (I’m showing a progress bar with logo while it’s syncing). I’m doing this with ContentResolver.requestSync(), but I have not found a way to get notified when the sync finishes.

Does anyone know how to do this? Thanks.

  • 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-26T23:36:48+00:00Added an answer on May 26, 2026 at 11:36 pm

    Using addStatusChangeListener() will give you callbacks when the sync is SYNC_OBSERVER_TYPE_ACTIVE or SYNC_OBSERVER_TYPE_PENDING. It is well weird that there is no finished event.

    Here is a workaround suggested by Felix. He suggests that you should ditch the ContentResolver in favour of Broadcasts.

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

Sidebar

Related Questions

I have my own custom Content Provider that loads a database which contains the
I'm trying to hide window after its startup. I have own window-class which is
I have my own asp.net cookie created like this: var authTicket = new FormsAuthenticationTicket(
We have our own custom calendar in our portal which is developed in Java.
I have my own User model in app engine, which should have a property
I have my own inherited App.Controller from Mvc.Controller which then all of my controllers
I have written own memory library which helps me to avoid memory leaks and
I have some encrypted storage (SQLite) and would like to implement my own ContentProvider.
I have a normal SQLite database in my app, managed through my own ContentProvider
So the problem is the following : i do have own user control. which

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.