You can't do queries across content providers. Heck you can't even do it across multiple SQLite databases.
2011/5/3 Gabriel Simões <gsim...@gmail.com> > Hello, > > I´m struggling with a problem where I have to search for information > on a content provider (MediaStore.Audio.Albums) but I need to restrict > my search based on information on another content provider > (MediaStore.Audio.Media). > Based on what I´ve read over the internet I should not use raw sqlite > queries to gather information from content providers (even from the > ones based on sqlite). By the other side I can´t figure a way to > compose the query() method so I add a where clause comparing info from > both providers. > I also have to add "distinct" to the albums listed. > > Is there a way to compose the query() method to get the information I > need, should I go for raw sql or should I programatically filter my > results by doing a sequence of queries()? > > Thanks, > Gabriel Simões > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en