# Class: com.pnfsoftware.jeb.core.units.code.android.ApkResHelper

Gather APK resources \(strings and integers atm\) to make them easily retrievable by client code, such as disassembly generators for [IDexUnit](IDexUnit). This helper walks through the processed Resources held by corresponding [IXmlUnit](IXmlUnit). The path structure of the units matter. 

 Access to this object is thread\-safe.

## Constructor: ApkResHelper
- parameter: `apk`, type: `com.pnfsoftware.jeb.core.units.code.android.IApkUnit`
- parameter: `preferredLocales`, type: `java.util.List<java.lang.String>`

Description: Create an APK resource helper.
parameter: apk: mandatory unit
parameter: preferredLocales: optional

## Constructor: ApkResHelper
- parameter: `apk`, type: `com.pnfsoftware.jeb.core.units.code.android.IApkUnit`

Description: Create an APK resource helper.
parameter: apk: APK unit

## Method: generateAutoCommentForPotentialResourceId
- parameter: `resId`, type: `int`
- return type: `java.lang.String`

Description: Generate a comment for a potential resource identifier.
parameter: resId: resource identifier
return: an auto\-comment, or null

## Method: getInteger
- parameter: `resId`, type: `int`
- return type: `java.lang.Integer`

Description: Retrieve an integer resource value.
parameter: resId: resource identifier
return: the integer value, or null

## Method: getString
- parameter: `resId`, type: `int`
- return type: `java.lang.String`

Description: Retrieve a string resource value.
parameter: resId: resource identifier
return: the string value, or null

