Android Utililty Methods Resource Get

List of utility methods to do Resource Get


The list of methods to do Resource Get are organized into topic(s).


PropertiesgetProperties(String name, Context context)
Read a properties file from /assets.
Resources resources = context.getResources();
AssetManager assetManager = resources.getAssets();
try {
    InputStream inputStream =;
    Properties properties = new Properties();
    return properties;
} catch (IOException e) {
String[]getStringArray(int arrayId)
Get a string array by its ID in the resources.
return resources.getStringArray(arrayId);
booleanappendRes(StringBuilder sb, Resources res, int resId)
append Res
Reader reader = null;
try {
    InputStream inputStream = res.openRawResource(resId);
    reader = new InputStreamReader(inputStream, "UTF-8");
    char[] buffer = new char[inputStream.available()];;
} catch (IOException e) {