On Fri, Dec 16, 2011 at 8:24 PM, Bsweet <[email protected]> wrote:
> I'm sorry if I am just slow here, but it still isn't clear to me how I
> would get the uid of the caller from the service.

:: smacks forehead ::

I forgot about the methods on Binder. You can use getCallingUid() on
your Binder to get the app UID of the caller, so long as you are on a
thread that is processing a Binder IPC transaction.

See also this thread:

http://groups.google.com/group/android-developers/browse_thread/thread/e0fdc9d5fd3e40fe

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

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

Reply via email to