[android-developers] Re: Multiple tables in one ContentProvider

2009-10-07 Thread Steve
Seems like you could do that. Have you tried setting up your content provider so that it does a query against multiple tables? The whole idea of content providers (other than exposing data across apps) is that the app requesting the data doesn't need to know anything about the complexity behind

[android-developers] Re: Multiple tables in one ContentProvider

2009-10-07 Thread Harshit Mapara
Actually I found one way. using SQLiteDatabase object you can call rawQuery() method and pass the entire select query. You can specify whatever you want (inner join, outer join,...) I tried this way and it worked. Thanks On Oct 7, 8:06 am, Steve steveoliv...@gmail.com wrote: Seems like you

[android-developers] Re: Multiple tables in one ContentProvider

2009-10-07 Thread Dianne Hackborn
Many of the standard providers use multiple tables. For example: http://android.git.kernel.org/?p=platform/packages/providers/ContactsProvider.git;a=blob;f=src/com/android/providers/contacts/ContactsProvider.java On Wed, Oct 7, 2009 at 2:30 PM, Harshit Mapara hnmap...@gmail.com wrote: