目的在Android中使用PackageManager中 [英] purpose Of using PackageManager in Android
问题描述
什么是PackageManager?
What is PackageManager?
- 在使用它的目的是什么?
什么是下面的方法描述:
What do the following methods describe?:
- getPackageManager()
- getApplicationInfo()
- 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屋!