Updated info.
I am using PackageManager.queryContentProviders(null,0,0) to get my
list of providers.
When I try the URI: "content://sync/settings" I get a good result with
records containing name and value.
As far as I can see the information "sync/settings" is not in the
record I get returned from PackageManager.queryContentProviders(null,
0,0)

So the next question is: Where can i find the 'full' URI of the
content providers?

On Nov 23, 10:40 am, Bamsen <[email protected]> wrote:
> Hi,
>  I have as an example, this provider information from the
> PackageManager.
>
> 1:[14]= ProviderInfo  (id=830058701400)
>         applicationInfo= ApplicationInfo  (id=830058701752)
>         authority= "sms" (id=830058702720)
>         enabled= true
>         exported= true
>         grantUriPermissions= false
>         icon= 0
>         initOrder= 0
>         isSyncable= false
>         labelRes= 0
>         metaData= null
>         multiprocess= true
>         name= "com.android.providers.telephony.SmsProvider" (id=830058701488)
>         nonLocalizedLabel= null
>         packageName= "com.android.providers.telephony" (id=830058701632)
>         processName= "com.android.phone" (id=830058702632)
>         readPermission= "android.permission.READ_SMS" (id=830058702784)
>         uriPermissionPatterns= null
>         writePermission= "android.permission.WRITE_SMS" (id=830058702896)
>
> URI: "content://sms/"
> No problem here, just pop READ_SMS in the manifest and all is
> peachy. :)
>
> 2:[8]= ProviderInfo  (id=830058693120)
>         applicationInfo= ApplicationInfo  (id=830058693392)
>         authority= "sync" (id=830058694096)
>         enabled= true
>         exported= true
>         grantUriPermissions= false
>         icon= 0
>         initOrder= 0
>         isSyncable= false
>         labelRes= 0
>         metaData= null
>         multiprocess= false
>         name= "android.content.SyncProvider" (id=830058693208)
>         nonLocalizedLabel= null
>         packageName= "android" (id=830058693320)
>         processName= "system" (id=830058694032)
>         readPermission= null
>         uriPermissionPatterns= null
>         writePermission= null
>
> URI: "content://sync/"
> Here the read and write permissions are null, so I have nothing to put
> in the manifest, and my app crashes 'unexpectedly'
>
> Is it possible to still access this provider?
>
> --
> Morten A. Steien

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