Thanks Dianne. Dianne Hackborn wrote: > Use Binder.getCallingUid() on the incoming call, and you can use that > uid with the package manager to find out the app packages associated > with it and such. This is used, for example, in the Settings provided > to apply different permissions for different paths in the provider, > and the Download provider to remember which apps have initiated > particular downloads and control future access to them. > > On Fri, Jan 23, 2009 at 7:52 AM, Al Sutton <[email protected] > <mailto:[email protected]>> wrote: > > > Has anyone thought about a way to allow a content provider to get > details of the activity or application using it? > > The use case I can see is for a secure storage app which would want to > differentiate between different apps which use it. At the moment I > can't > see any way for the implementation to see which app is using it so two > separate apps could potentially access each others data. > > Al. > > -- > ====== > Funky Android Limited is registered in England & Wales with the > company number 6741909. The registered head office is Kemp House, > 152-160 City Road, London, EC1V 2NX, UK. > > The views expressed in this email are those of the author and not > necessarily those of Funky Android Limited, it's associates, or it's > subsidiaries. > > > > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] <mailto:[email protected]> > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them. > > > >
-- ====== Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
