有没有办法以编程方式列出设备上的所有可用内容提供商?没有真正的用例,我只是觉得看到我在手机上安装了哪些已经暴露内容提供商的应用程序可能很简洁.
下面是记事本示例代码,为什么android:authorities = com.google.provider.NotePad不使用项目包名?究竟是什么android:authorities要求?
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions …Run Code Online (Sandbox Code Playgroud)