Resources.GetResourcePackageName(Int32) Method

Definition

Return the package name for a given resource identifier.

[Android.Runtime.Register("getResourcePackageName", "(I)Ljava/lang/String;", "GetGetResourcePackageName_IHandler")]
public virtual string? GetResourcePackageName (int resid);
[<Android.Runtime.Register("getResourcePackageName", "(I)Ljava/lang/String;", "GetGetResourcePackageName_IHandler")>]
abstract member GetResourcePackageName : int -> string
override this.GetResourcePackageName : int -> string

Parameters

resid
Int32

The resource identifier whose package name is to be retrieved.

Returns

A string holding the package name of the resource.

Attributes

Exceptions

Throws NotFoundException if the given ID does not exist.

Remarks

Return the package name for a given resource identifier.

Java documentation for android.content.res.Resources.getResourcePackageName(int).

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.

Applies to

See also