- packageName
- Name of the application's package.
- flags
- Option flags, one of Context.CONTEXT_INCLUDE_CODE or Context.CONTEXT_IGNORE_SECURITY.
Documentation for this section has not yet been entered.
Return a new Context object for the given application name. This Context is the same as what the named application gets when it is launched, containing the same resources and class loader. Each call to this method returns a new instance of a Context object; Context objects are not shared, however they share common state (Resources, ClassLoader, etc) so the Context instance itself is fairly lightweight.
Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if there is no application with the given package name.
Throws Java.Lang.SecurityException if the Context requested can not be loaded into the caller's process for security reasons (see Context.CONTEXT_INCLUDE_CODE for more information}.