目的在Android中使用PackageManager中 [英] purpose Of using PackageManager in Android

查看:146
本文介绍了目的在Android中使用PackageManager中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是PackageManager?

What is PackageManager?

  • 在使用它的目的是什么?

什么是下面的方法描述:

What do the following methods describe?:

  1. getPackageManager()
  2. getApplicationInfo()
  3. getPackageName()

任何人能给出详细的说明,因为我无法获得在Android开发指南的完整信息。

Can any one give detailed description as I could not get complete information in the Android developer guide.

和也一个样的程序,包括所有的方法。

And also one sample program that comprises all the methods.

推荐答案

Android包管理器提供了类似的功能,以Linux软件包管理器。 <一href="http://en.wikipedia.org/wiki/Package_manager">http://en.wikipedia.org/wiki/Package_manager

The Android Package Manager serves a similar function to Linux package managers. http://en.wikipedia.org/wiki/Package_manager

API文档:[这是]类用于检索各种有关那些设备上当前安装的应用程序包的信息。

From the API docs: "[It's a] Class for retrieving various kinds of information related to the application packages that are currently installed on the device."

想知道安装了哪些应用程序? <一href="http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledApplications(int)">Ask包管理器。并依此类推。

Want to know which apps are installed? Ask the package manager. And so on.

这篇关于目的在Android中使用PackageManager中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆