Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Find a package by name in the callers ClassLoader
instance.
[Android.Runtime.Register("getPackage", "(Ljava/lang/String;)Ljava/lang/Package;", "")]
public static Java.Lang.Package? GetPackage(string? name);
[<Android.Runtime.Register("getPackage", "(Ljava/lang/String;)Ljava/lang/Package;", "")>]
static member GetPackage : string -> Java.Lang.Package
a package name, for example, java.lang.
the package of the requested name. It may be null if no package information is available from the archive or codebase.
Find a package by name in the callers ClassLoader
instance. The callers ClassLoader
instance is used to find the package instance corresponding to the named class. If the callers ClassLoader
instance is null then the set of packages loaded by the system ClassLoader
instance is searched to find the named package.
Packages have attributes for versions and specifications only if the class loader created the package instance with the appropriate attributes. Typically, those attributes are defined in the manifests that accompany the classes.
Java documentation for java.lang.Package.getPackage(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35, .NET for Android API 36 |
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in