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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:39:57+00:00 2026-06-13T16:39:57+00:00

I have a bounded service S (seperate process) which gets started when the boot

  • 0

I have a bounded service S (seperate process) which gets started when the boot is complete. I have an application A which binds to the service when the application is launched.
Now my question is when I force stop the application in settings the service S which is in different process also gets destroyed.
Ideally only the application process should have been killed but the service should have kept running. Why is the service S getting killed even if it is in different process.

  • 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-13T16:39:59+00:00Added an answer on June 13, 2026 at 4:39 pm

    Bound services always stop when the Activity that called bindService() is destroyed. In order to prevent this from happening you must do the following:

    1. Make your service stick by returning START_STICKY from the onStartCommand() method within your service.
    2. You must call startService() before calling bindService() from your Activity.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question regarding the service and activity. I have one service which calls
I have a data grid which is bounded to a simple List. now i
This is a C# Winform question. I have a DataGridView which is bounded to
I have an in memory bounded queue in which multiple threads queue objects. Normally
I want to create a custom modelbinder which validates the bounded model. I have
I have a bounded blocking queue in an application that was written several years
i have checkedlistbox which is bounded to a datasource as foloowing : chListBox.DataSource =
I have a ADF table component which is bounded to a list we are
In my domain, I have 2 bounded contexts that are relevant to this question:
I have a dataset bounded to a listbox in a Windows CE application using

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.