Yes onServiceConnected() is called from App-B. So this concludes that two applications cannot bind to the same remote service, doesn't it?
On Thu, Jun 30, 2011 at 6:13 PM, Mark Murphy <[email protected]>wrote: > On Thu, Jun 30, 2011 at 8:35 AM, Suraj Gopalakrishnan > <[email protected]> wrote: > > When App-A bound to the remote service, it hit > > 1. OnCreate() > > 2.OnBind() > > methods > > When App-B tried to connect to the remote service, there were no hits. > > onCreate() would not be called, as the service is already created if > App A is bound to it. > > I would have expected onBind() to be called, though. The real test of > whether you are bound is whether the ServiceConnection in App B is > called with onServiceConnected(). > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version > 1.9.9 Available! > > -- > 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 > -- Best Regards, Suraj Gopalakrishnan -- 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

