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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:55:29+00:00 2026-05-25T23:55:29+00:00

Condition: I have a client activity X of a remote service (with AIDL) that

  • 0

Condition:
I have a client activity “X” of a remote service (with AIDL) that calls the bindService() in the onCreate() and unbindService() in the onDestroy(). Assume that this activity has been started but not in the foreground (onStop() has happened).

It is said that when android system needs more memory elsewhere it might kill the process of another activity with less priority (possibly “X”).

If, says, the android system decides to kill “X”‘s process, according to the activity-lifecycle diagram the onDestroy() will not be called if the process is killed when more memory is needed.
http://developer.android.com/guide/topics/fundamentals/activities.html

Question:
Will this cause it to leak the service connection? Is it safer then to bind and unbind service in onStart() and onStop()?

Thanks in advance!

  • 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-25T23:55:30+00:00Added an answer on May 25, 2026 at 11:55 pm

    Question: Will this cause it to leak the service connection?

    The ServiceConnection object would be in the process of “X” and therefore will go away when that process is terminated.

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

Sidebar

Related Questions

Possible Duplicate: php false place in condition I have noticed that a lot of
Say, you have a condition like this; if ($condition_1 && $condition_2) and you have
I have managed to put this condition and rule below together to redirect a
Hello i have somme problems to write a simple XML-RPC client in PHP. This
I'm really struggling with this query. I have 4 tables (http://oberto.co.nz/db-sql.png): Invoice_Payement, Invoice, Client
I have our first NodeJS server that's being deployed to a client server along
I have created a WCF service and have its operationcontract and implementation like this:
I have a web service written in PHP, that returns JSON results. It works
I am trying to make a condition that the client ID must match the
I have a C++ COM module that accept IDispatch interfaces and on certain condition

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.