Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
bindService() as Option?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jtaylor  
View profile  
 More options Jan 31 2008, 7:52 pm
From: jtaylor <juan.anthony.tay...@gmail.com>
Date: Thu, 31 Jan 2008 16:52:22 -0800 (PST)
Local: Thurs, Jan 31 2008 7:52 pm
Subject: bindService() as Option?
If when no activities are bound to a service, why not have the option
for the service to continue?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackbod  
View profile  
 More options Jan 31 2008, 9:27 pm
From: hackbod <hack...@gmail.com>
Date: Thu, 31 Jan 2008 18:27:07 -0800 (PST)
Local: Thurs, Jan 31 2008 9:27 pm
Subject: Re: bindService() as Option?
That's what startService() lets you do.

On Jan 31, 4:52 pm, jtaylor <juan.anthony.tay...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jtaylor  
View profile  
 More options Jan 31 2008, 10:26 pm
From: jtaylor <juan.anthony.tay...@gmail.com>
Date: Thu, 31 Jan 2008 19:26:08 -0800 (PST)
Local: Thurs, Jan 31 2008 10:26 pm
Subject: Re: bindService() as Option?
In using bindService, if there are no activities bound to the service,
then the service stops running? If so, suppose I don't want that to
happen. Suppose I want the service to keep running even when all
activities that are bound to it are unbound from it?

On Jan 31, 9:27 pm, hackbod <hack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
trickybit  
View profile  
 More options Feb 1 2008, 2:53 am
From: trickybit <jmack...@gmail.com>
Date: Thu, 31 Jan 2008 23:53:42 -0800 (PST)
Local: Fri, Feb 1 2008 2:53 am
Subject: Re: bindService() as Option?
Run the RemoteService demo in the ApiDemos program, two client
activities to use startService() and bindService each, and you can
start, bind, unbind, stop, etc. and see how they interact.

On Jan 31, 7:26 pm, jtaylor <juan.anthony.tay...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackbod  
View profile  
 More options Feb 1 2008, 4:17 am
From: hackbod <hack...@gmail.com>
Date: Fri, 1 Feb 2008 01:17:45 -0800 (PST)
Local: Fri, Feb 1 2008 4:17 am
Subject: Re: bindService() as Option?
On Jan 31, 7:26 pm, jtaylor <juan.anthony.tay...@gmail.com> wrote:

> In using bindService, if there are no activities bound to the service,
> then the service stops running? If so, suppose I don't want that to
> happen. Suppose I want the service to keep running even when all
> activities that are bound to it are unbound from it?

If you want a service to run without any clients bound to it, you (or
the service) call startService() for it.  Please, however, don't just
start a service and let it run forever because that is easier to do --
leaving a service running means the system needs to keep your process
around, which steals memory from others.  You really should only have
a service running when it has something useful to do: retrieving data
from the network, playing music, etc.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gabor Paller  
View profile  
 More options Feb 1 2008, 6:11 am
From: Gabor Paller <paller.gab...@freemail.hu>
Date: Fri, 1 Feb 2008 03:11:53 -0800 (PST)
Local: Fri, Feb 1 2008 6:11 am
Subject: Re: bindService() as Option?
There is one thing which was not evident for me reading the
documentation.
One can have a service that implements the startService() and the
bindService() lifecycle
at the same time. This service would have onStart, onCreate, onDestroy
and getBinder methods, would be
possible to start with both startService and bindService and if
started with startService, it will survive the
last client unbound from it. I have already implemented such a thing,
maybe I will write an example program
about it.

On Feb 1, 9:17 am, hackbod <hack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jtaylor  
View profile  
 More options Feb 1 2008, 8:14 pm
From: jtaylor <juan.anthony.tay...@gmail.com>
Date: Fri, 1 Feb 2008 17:14:02 -0800 (PST)
Local: Fri, Feb 1 2008 8:14 pm
Subject: Re: bindService() as Option?
Thanks for the warning on letting a service run on.

On Feb 1, 4:17 am, hackbod <hack...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jtaylor  
View profile  
 More options Feb 1 2008, 8:14 pm
From: jtaylor <juan.anthony.tay...@gmail.com>
Date: Fri, 1 Feb 2008 17:14:43 -0800 (PST)
Local: Fri, Feb 1 2008 8:14 pm
Subject: Re: bindService() as Option?
Thanks, I guess that makes sense.

On Feb 1, 6:11 am, Gabor Paller <paller.gab...@freemail.hu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gabor Paller  
View profile  
 More options Feb 3 2008, 5:13 am
From: Gabor Paller <paller.gab...@freemail.hu>
Date: Sun, 3 Feb 2008 02:13:53 -0800 (PST)
Local: Sun, Feb 3 2008 5:13 am
Subject: Re: bindService() as Option?
I created the example program.
http://mylifewithandroid.blogspot.com/2008/02/double-life-of-service....
There are some interesting implications, however, on stopping the
service.
If a service is started and bound at the same time, it cannot be
stopped.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »