On Fri, Nov 11, 2011 at 10:15 PM, phannguyen <pcnguye...@gmail.com> wrote:

> Dear all,
> I have an app that contains Activity A and MyService which this service
> runs in background indefinitely.
>

No it doesn't - that's not possible.


> I want myservice run in background indefinitely
>

Again, that's not possible.


> and activity A can bind and unbind every time it Start and Stop. this
> service run on the same process of my application.
>

I believe you just call bindService(), which states that it will create the
Service if it needs to.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to