Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到了所有正在运行的后台进程
但我想要一个需要互联网的正在运行/已安装的应用程序列表
例如
当我在手机中安装 Facebook 应用程序时,它将在后台运行并需要互联网
您需要使用 PackageManager.GET_PERMISSIONS 标志,例如:
PackageManager p = context.getPackageManager(); final List<PackageInfo> appinstall = p.getInstalledPackages(PackageManager.GET_PERMISSIONS | PackageManager.GET_PROVIDERS)