I'm trying to figure out how to get data from another app's ContentProvider.
>From the docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) I got that the url format should be: content://com.example.authority/table_name I discovered the authority for the needed ContentProvider by going through getPackageManager().queryContentProviders(null, 0, 0); and then iterating to get the providerInfo.authority. To get the table name, I found the needed database in the /data/data folder, and did an sqlite3 .dump on it. But when I do a query: managedQuery("content://authority.for.app.i.want.to.access/ table_name", null, null, null, null); I get the following Exception: "java.lang.IllegalArgumentException: Unknown URL" 08-16 01:33:28.703: ERROR/DatabaseUtils(762): java.lang.IllegalArgumentException: Unknown URL content://authority.for.app.i.want.to.access/table_name 08-16 01:33:28.703: ERROR/DatabaseUtils(762): at app.i.want.to.access.Provider.query(ThisAppsProvider.java:430) 08-16 01:33:28.703: ERROR/DatabaseUtils(762): at android.content.ContentProvider$Transport.bulkQuery (ContentProvider.java:112) 08-16 01:33:28.703: ERROR/DatabaseUtils(762): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:97) 08-16 01:33:28.703: ERROR/DatabaseUtils(762): at android.os.Binder.execTransact(Binder.java:287) 08-16 01:33:28.703: ERROR/DatabaseUtils(762): at dalvik.system.NativeStart.run(Native Method) Does somebody know how I can fix this? Thanks -Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

