Solution: http://stackoverflow.com/questions/2914921/android-context-bindservice-always-returns-false-and-serviceconnection-object-is
Use: getApplicationContext().bindService(...) Issue: http://code.google.com/p/android/issues/detail?id=2483 On Nov 20, 8:20 pm, Henrik Lindqvist <[email protected]> wrote: > 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/threa... > > >> * 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

