Thursday, June 30, 2011

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

On Thu, Jun 30, 2011 at 8:35 AM, Suraj Gopalakrishnan
<> 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) | |

_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
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment