Thursday, June 30, 2011

Re: [android-developers] Binding to a Remote service

On Thu, Jun 30, 2011 at 8:35 AM, Suraj Gopalakrishnan
<surajjmr@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment