public class ResourceUtils
extends java.lang.Object
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
geFileFromAssets(Context context,
java.lang.String fileName)
get an asset using ACCESS_STREAMING mode.
|
static java.lang.String |
geFileFromRaw(Context context,
int resId)
get content from a raw resource.
|
public static java.lang.String geFileFromAssets(Context context,
java.lang.String fileName)
context - fileName - The name of the asset to open. This name can be hierarchical.public static java.lang.String geFileFromRaw(Context context,
int resId)
context - resId - The resource identifier to open, as generated by the appt tool.