[英]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? 我怎么知道URI的授权部分?
I mean how can I know what the developer have assigned for android:authorities="" for provider with in manifest file? 我的意思是我怎么知道开发人员为清单文件中的提供程序分配了android:authorities =“”吗?
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) 公共抽象列表queryContentProviders(字符串processName,int uid,int标志)
This implies that you grab the processName/UID of the application you're looking for. 这意味着您将获取要查找的应用程序的processName / UID。
Learn more here: http://developer.android.com/reference/android/content/pm/PackageManager.html 在此处了解更多信息: http : //developer.android.com/reference/android/content/pm/PackageManager.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.