public class PackageUtils
extends java.lang.Object
| Constructor and Description |
|---|
PackageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getResourcePackageName(android.content.Context context)
Utility method for getting the resource package name; returns the value set in
setResourcePackageName, or context.getPackageName() if no custom value has been
set.
|
static void |
setResourcePackageName(java.lang.String packageName)
Utility method for setting the package name that will be used to look up resources
dynamically at runtime.
|
public static void setResourcePackageName(java.lang.String packageName)
packageName - package name for R resources.public static java.lang.String getResourcePackageName(android.content.Context context)
context -