简体   繁体   English

如何在Android中找到第三方应用程序内容提供商URI?

[英]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.

相关问题 Android如何查找第三方应用程序的资源标识符图标 - Android how to find resource identifier for third party apps icon android如何识别内置应用程序和第三方应用程序之间的区别 - how android recognize the difference between built in apps and third party apps 如何在Android上通过我自己的应用程序关闭第三方应用程序 - How to close third party apps by my own app on Android Android:通过content:// URI从第三方应用程序(例如WhatsApp)获取图像位图 - Android: Getting image bitmap from third party app (e.g. WhatsApp) via content:// URI 在Android中启动系统和第三方应用 - Launching system and third party apps in android 更新第三方网站中的新android应用 - update new android apps in third party sites 将图像分享到 android 中的第三方应用程序 - Share Image to third party apps in android 如何在 android 中记录通话(如果不允许第三方应用程序和 Playstore 中存在的应用程序) - How to record calls in android if its not permited for third-party apps and apps for that does exist in playstore 如何在 Android 上测试内容提供程序 - How to test content providers on Android Android:如何从代码中禁用所有第三方应用程序的通知声音? - Android: How to disable the sound of all third-party apps' notifications from code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM