Hello everyone, is there a possibility to programmatically query a ContentProvider? I've successfully managed to get every currently on the device installed ContentProvider via the PackageManager. This gives me every Content Provider by it's Base-URI in the form of e.g. com.google.android.notepad.NotePadProvider. What I want now is to programmatically access this ContentProvider. But since I don't know the provided tables (in the case of a DB based provider) and the exposed fields, I can't query the provider. What I would need is to programmatically access the exact CONTENT_URI and the fields of the ContentProvider. But since this is not strictly specified and every ContentProvider can do it differently (e.g. com.google.provider.NotePad) I don't see a chance to programmatically query a ContentProvider discovered via the PackageManager. The only idea that comes to my mind is to do it via reflection, but e.g. the constant name CONTENT_URI is only a suggestion by Android and can't be taken for granted as the exact URI to a provider table.
So my question is, does anyone have an idea on how I could programmatically get all the data from a ContentProvider without knowing it's tables/fields beforehand? Thx in advance, Chris --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

