Thanks Dianne Hackborn for immediate response. So if 3 packages are using the mediacontent provider and one of provided the shared user ID as 'android.media', how many instances of the provider would be available.
-Rishi Kaura On Feb 5, 11:39 am, Dianne Hackborn <[email protected]> wrote: > android:multiprocess="false" is redundant since that is the default value > (long long ago it didn't used to be for content providers, but these days > false is the default everywhere). > > The shared user ID just means the packages sharing the uid -can- run in the > same process. To make them actually run in the same process, you need to > use android:process with the same process name. > > > > > > On Wed, Feb 4, 2009 at 10:33 PM, Rishi <[email protected]> wrote: > > > I am a bit confused after looking at the AndroidManifest.xml in the > > Media provider code of android. It would be great if some one can > > clarify here: > > The file has android:sharedUserId="android.media" and > > android:multiprocess="false" > > > ** From my understanding android:multiprocess="false" indicates that > > request to content provider would happen over IPC. > > > ** android:sharedUserId="android.media" - Specifies the name of a user > > ID that will be shared between multiple packages. By setting this > > value on two or more packages, each of these packages will be given a > > single shared user ID, so they can for example run in the same process > > > So if Package1 has android:sharedUserId="android.media" specified and > > it uses > > uses the android's media provider , the media provider would run in a > > separate process or > > in the same process as the caller? > > -- > Dianne Hackborn > Android framework engineer > [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.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

