cuốn sách gpt4 ai đã làm

android - 如何在 android 中查找第三方应用程序内容提供商 URI?

In lại Tác giả: Walker 123 更新时间:2023-11-29 01:55:17 25 4
mua khóa gpt4 Nike

假设我已经安装了第三方应用程序并且我想访问该应用程序中的内容提供者。

我如何知道 URI 的权限部分?

我的意思是我怎么知道开发人员在 list 文件中为 android:authorities=""provider 分配了什么?

câu trả lời hay nhất

查看文档后,您可以使用以下方法获取设备上的内容提供者:

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

这意味着您获取了您要查找的应用程序的进程名称/UID。

在这里了解更多: http://developer.android.com/reference/android/content/pm/PackageManager.html

关于android - 如何在 android 中查找第三方应用程序内容提供商 URI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15518851/

25 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress