Android.Test.Mock.MockPackageManager.GetResourcesForApplication Method
Retrieve the resources associated with an application.

Syntax

[Android.Runtime.Register("getResourcesForApplication", "(Ljava/lang/String;)Landroid/content/res/Resources;", "GetGetResourcesForApplication_Ljava_lang_String_Handler")]
public override Android.Content.Res.Resources GetResourcesForApplication (string appPackageName)

Parameters

appPackageName
Package name of the application whose resources are to be retrieved.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

Retrieve the resources associated with an application. Given the full package name of an application, retrieves the information about it and calls getResources() to return its application's resources. If the appPackageName cannot be found, NameNotFoundException is thrown.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1