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

  • Home
  • SEARCH
  • 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 8646855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:55:14+00:00 2026-06-12T12:55:14+00:00

I have setup a SyncAdapter using the Android sample project , Steele’s two part

  • 0

I have setup a SyncAdapter using the Android sample project, Steele’s two part tutorial (1 and 2) and the Google I/O 2010 talk on REST applications.

It seems like AbstractThreadedSyncAdapter always calls onDestroy on the SyncAdapter Service immediately after its onPerformSync completes. I would like to spin off other threads from the SyncAdapter service though, and I wonder if it is possible to keep the SyncAdapter Service alive until the those threads complete–for example, to register callbacks from these asynchronous worker threads back to the SyncAdapter service.

Is it possible to do that without killing the service after onPerformSync? Or do you have to put all sync methods into the same thread within the SyncAdapter onPerformSync method?

  • 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-12T12:55:16+00:00Added an answer on June 12, 2026 at 12:55 pm

    I’m pretty sure the answer is “no”… but even if it was possible, why would you want to do this anyway? The SyncAdapter does its work on a background thread already… so why should you have to fire off separate worker threads within the SyncAdapter service to perform the sync?

    I imagine things will begin to get messy if you attempt to register callbacks and/or mess around with the SyncAdapter‘s lifecycle to achieve this. Android’s sync service is responsible for scheduling/performing sync operations for any number of apps (i.e. GMail, Google Drive, etc.), so when onPerformSync finishes, that is a way of telling Android that the work is completely done and that it should focus on the next app it must sync.

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

Sidebar

Related Questions

I have setup the Android part for C2DM, and here's a part of the
I have setup a simple test project for the EF 4.1 RC, using Code-First
I have setup ability for a user to specify some settings using the in-built
I have setup an app project and a static project in a workspace in
I have setup Custom Domain https://developers.google.com/appengine/docs/domain I have uploaded An SSL certificate and private
I have setup hadoop on top of mongodb using hadoop-mongodb driver. Currently I can
I have setup a SonataAdminBundle on my Symfony 2.1.2 project and it works correctly.
I have setup url routing in my ASP.NET 4 project, which works perfectly offline.
I have setup a build configuration in TFS2010 with MSBuild arguments to deploy using
I have setup Knockoutjs to dynamically create an editable list of values using the

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.