Hello everyone, I am using content provider and create a database with multiple tables. I already get , insert , update and delete the values of tables. Now I want to get data from multiple tables in a single query. I wounder how can I do it by content provider and cursor. Kindly help me on this. Thanks
Asked
Active
Viewed 1,116 times
2
-
are you familiar with sql joins? – pskink Jul 02 '14 at 08:08
-
yes.I am But how to use them in content provider? – Nouman Ghaffar Jul 02 '14 at 08:10
-
in query method return a Cursor which contains the data from table joins – pskink Jul 02 '14 at 08:13
1 Answers
1
You can join multiple tables using a ContentProvider.
Look at android-contentprovider-database-query-multiple-tables.
So the source code is also available at GitHub,