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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:25:57+00:00 2026-05-24T12:25:57+00:00

I have an application which once the user runs the app it has a

  • 0

I have an application which once the user runs the app it has a long process to run, such as downloading needed files and setting it all up and what not. I would like to move the process to the background and show a notification in the status bar while the process is running.

What would my best strategy be to keep the process alive while downloading the files and what not. I’ve read about services, but have also heard they’re easily killed? Should I use a service or should I just run a thread with maximum priority and just throw a notification up and close it when the process is over?

What’s best thank you for any help. Process by the way is about ten minutes no longer than it takes to download a rom in rom manager basically just want that same setup thank you for any help.

  • 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-24T12:25:58+00:00Added an answer on May 24, 2026 at 12:25 pm

    It sounds like a Foreground Service is exactly what you need. When you create it, a notification is placed in the status bar to tell the user that it is running. The service is also given high priority so that it will not be canceled.

    From the documentation for the Foreground flag:

    public final void startForeground (int id, Notification notification)
    
    Make this service run in the foreground, supplying the ongoing notification
    to be shown to the user while in this state. By default services are background,
    meaning that if the system needs to kill them to reclaim more memory (such as to
    display a large page in a web browser), they can be killed without too much harm.
    You can set this flag if killing your service would be disruptive to the user,
    such as if your service is performing background music playback, so the user
    would notice if their music stopped playing.
    

    You can look at the rest of the documentation here.

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

Sidebar

Related Questions

I have an application which get copied and run on client machines. The program
I have an application which has to live as a service, I create an
I have a PHP application, which has a delete function on one of the
I have a PHP application where I set $_SESSION['user']=logged once a user is authenticated.
i have an application in which a user can lock a certain commodity and
I have an Excel application in which I want to present the user with
i have a asp.net mvc application which uploads several xml files that are used
I have an Application which, reads files from Sdcard and does some intense processing.
I have a script in my facebook application which will provide the user with
I have an application which runs a timer to check for idle time and

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.