Back to project page my-wallpaper.
The source code is released under:
MIT License
If you think the Android project my-wallpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.koonen.utils; /* w w w. j ava 2 s .c o m*/ import android.content.res.Resources; import com.koonen.photostream.R; /** * * @author glick * */ public class GroupUtils { public static String getGroupName(Resources resources, String group) { String[] groupNames = resources.getStringArray(R.array.group_names); String[] groupValues = resources.getStringArray(R.array.group_values); for (int i = 0; i < groupValues.length; i++) { if (groupValues[i].equals(group)) { return groupNames[i]; } } return null; } }