On further investigation. It works fine, unless a TabActivity/TabHost
launches the Activity that calls bindService.

Reading this thread from 2008:
http://groups.google.com/group/android-developers/browse_thread/thread/978fc19ae5976efa/0b830abad32d572a

>> * you can't bind to a service, onServiceConnected will never be
>> called.
>
>This is a bug that should be fixed in the future.  Not documented because we
>didn't realize it was broken. :)

Seems like an old, ignored bug in TabActivity. Sigh!


On Nov 20, 6:53 pm, Henrik Lindqvist <[email protected]>
wrote:
> I have a local Service to which multiple activites needs to bind. In
> the first launched Activity, bindService returns true and
> onServiceConnected is called. But in any additionally launched
> activites bindService returns false, and I can't get a reference to my
> Service.
>
> How can multiple activities simultaneously be connected to a local
> Service?

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

Reply via email to