M_Follower
M_Follower

Reputation: 111

How to find third party apps content providers URI in android?

Lets say I have installed a third party app & I want to access the content provider which is in that app.

How would I know the authority part of the URI?

I mean how can I know what the developer have assigned for android:authorities="" for provider with in manifest file?

Upvotes: 2

Views: 1842

Answers (1)

jtt
jtt

Reputation: 13541

After looking at the documentation, you can grab the content providers on a device by using:

public abstract List queryContentProviders (String processName, int uid, int flags)

This implies that you grab the processName/UID of the application you're looking for.

Learn more here: http://developer.android.com/reference/android/content/pm/PackageManager.html

Upvotes: 1

Related Questions