On Fri, Jan 16, 2009 at 2:43 AM, whitemice <[email protected]> wrote:
> <provider > android:name="test.TheirContentProvider" > android:authorities="myComponentNamespace.theirApplicaitonNamespace" > > > <meta-data android:name="type" android:value="myComponentNamespace"/ > > > </provider> The meta data name is a global namespace to all applications, so you must qualify it. You should do it something like this: <meta-data android:name="com.example.myself.MyThing" android:value="true" /> See: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestMetaData (Sorry this is very hard to discover in the docs) > The upside of this is that the application developer can now deploy my > Content Provider using any URI namespace they choose. However, I will > still recommend the previous naming scheme to prevent damaging naming > conflicts. They should give their provider an authority that is in their own domain, as you are supposed to when writing your own providers. There is no need to change the convention here. > >>Dianne Hackborn - …Also, have you thought about security at all? What > kind of information is stored on the content provider? Who can access it?<< > As I understand it, any cross application Content Provider on Android > needs to implement its own (i.e. roll-your-own) security solution when > handling incoming requests. Usually they rely on the standard permission mechanism, though you can do more complicated stuff if you want. -- 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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

