Android examples for android.content.res:Resources
Get string from string resources file
import android.content.Context; import java.security.MessageDigest; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main{ /***///w w w .j a v a 2 s.c o m public static String localString(Context context, int sId) { return context.getResources().getString(sId); } }