Hi Makas, that what i exactly want, thanks a lot, here is my understanding, all in AndroidManifest.xml:
1. <permission android:name="com.example.project.permission" android:protectionLevel="signature"/> 2. <user-permission android:name="com.example.project.permission"> 3. <provider android:name=".provider.myProvider" android:readPermission="com.example.project.permission" android:writePermission="com.example.project.permission"> On Tue, Mar 16, 2010 at 1:46 AM, Makas Tzavellas <[email protected]>wrote: > Hi Vincent, > > Do you mean you want to prevent other applications to access to your > ContentProvider except for your own applications? Can't say that I > understand your question 100%. So I apologize if I am not answering > your question correctly. > > You can probably declare your own permission in the > AndroidManifest.xml and set the "protectionLevel" attribute to > "signature". And set the read and write permission in your <provider> > tag to use the permission that you have declared. You app that needs > access to the ContentProvider however will need to declare that is > uses that permission as well in the AndroidManifest.xml. > > You can find out more info here > http://developer.android.com/guide/topics/security/security.html. > > Makas > > On Mar 15, 10:25 pm, Vincent Tsao <[email protected]> wrote: > > hi there, how should i use content provider without share app data > between > > other app? > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

