Friday, July 30, 2010

[android-developers] Re: How to identify which client called into a Remote/AIDL service?

I don't know if there's a more proper way to do what you need, but it
makes sense that there should be.

In the worst case though, you can solve this through your own
protocol... you can require clients call an initialization to receive
some random value you provide (and store, to associate with them), and
all of your other entry points can require that this value be among
the parameters.

On Jul 26, 2:13 pm, Jin Chiu <live2drea...@gmail.com> wrote:
> In the implementation of my remote service's published API, is there a
> way to identify which client called a given method? For example, is
> there a way to obtain a unique ID or address of the caller? I already
> cache an AIDL callback reference to the client, but not sure how I can
> use this for identification.

--
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