Just found out the following from the link I gave - this clearly
answers the original question :-)

Each content provider exposes a public URI (wrapped as a Uri object)
that uniquely identifies its data set. A content provider that
controls multiple data sets (multiple tables) exposes a separate URI
for each one. All URIs for providers begin with the string
"content://". The content: scheme identifies the data as being
controlled by a content provider.

Cheers,

Nigel

On Sep 23, 10:15 pm, Nigel Eke <[email protected]> wrote:
> Sorry - no answer - but exactly the same question.  I've been browsing
> a number of examples from the books and they all show just one table -
> with a directory (list) access and an item access.
>
> My feeling is theContentProviderought to warp the logical groupings
> of data, so if the tables are related then there would be oneContentProvider. 
>  However - I'm going back to read this 
> again:http://developer.android.com/guide/topics/providers/content-providers...
>  especially the URI part...
>
> Interested to hear the opinions of others here too...
>
> Rgds,
>
> Nigel
>
> On Sep 11, 8:58 am, Android Box <[email protected]> wrote:
>
> > Hi all,
>
> > When an application needs to use two or more SQLite tables,
> > will we need to separate differenceContentProvider(by table) to handle
> > them,
> > or just oneContentProviderto do it?
>
> > Ryan
--~--~---------~--~----~------------~-------~--~----~
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