标签:
Retrieve overall information about an application package defined in a package archive file
flags Additional option flags. Use any combination of GET_ACTIVITIES,
GET_GIDS, GET_CONFIGURATIONS, GET_INSTRUMENTATION, GET_PERMISSIONS,
GET_PROVIDERS, GET_RECEIVERS, GET_SERVICES, GET_SIGNATURES, to modify the
data returned.
Retrieve overall information about an application package that is installed on the system.
Throws PackageManager.NameNotFoundException
if a package with the given name can not be found on the system.
packageName The full name (i.e. com.google.apps.contacts) of the desired package.
flags Additional option flags. Use any combination of GET_ACTIVITIES, GET_GIDS, GET_CONFIGURATIONS,
GET_INSTRUMENTATION, GET_PERMISSIONS, GET_PROVIDERS, GET_RECEIVERS,
GET_SERVICES, GET_SIGNATURES, GET_UNINSTALLED_PACKAGES to modify the data returned.
Retrieve, creating if needed, a new directory in which the application can place its own custom data files. You can use the returned File object to create and access files in this directory. Note that files created through a File object will only be accessible by your own application; you can only set the mode of the entire directory, not of individual files.
name Name of the directory to retrieve. This is a directory that is created as part of your application data.
Creates a DexClassLoader
that finds interpreted and native code. Interpreted classes are found in a set of DEX files contained in Jar or APK files. The path lists are separated using the character specified by the "path.separator" system property, which defaults to ":".
不错的文章:
1、 http://blog.csdn.net/singwhatiwanna/article/details/22597587 关于加载apk中的类和代理实现的一种思路
标签:
原文地址:http://www.cnblogs.com/LuLei1990/p/4546387.html