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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:54:45+00:00 2026-06-01T11:54:45+00:00

I have to do a background process which will perform some operations.. while this

  • 0

I have to do a background process which will perform some operations.. while this operation is running, a user can switch from one activity to another. How can i do this by maintaining the background process to be keep running ? Please reply.
i was using asynctask for this. but when i switch from one activity to another it use to stop the operations which were getting performed at background thread. Please reply

  • 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-01T11:54:46+00:00Added an answer on June 1, 2026 at 11:54 am

    If you want to perform a background task that should run to completion irrespective of which activity is brought to front, you can set up a service to achieve this. The Android system assigns a dedicated thread pool to your service which allows tasks executed via the service run independent of the foreground activity of your app.

    The Android developer documentation provides a detailed description and overview of this concept.

    I had a similar requirement with my app .. Using services did the trick for me 🙂

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

Sidebar

Related Questions

I have some code that starts a background process for search in my WPF
I have a background worker which can be cancelled. The normal flows interrupt itself
i have extend a uiapplication for user interface,in which i will take a date
I'm building a website with Rails which can let user check if some domains
How can I start a thread which will run in the background but the
I have developed one application which will have activities and one background service and
I have a PHP script that runs as a background process. This script simply
If i have file for eg: a log file created by any background process
I have a process I want to run in the background of a page.
I have background music for some songs available in both .MID and .KAR formats,

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.