Get string from string resources file - Android android.content.res

Android examples for android.content.res:Resources

Description

Get string from string resources file

Demo Code

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);
    }

}

Related Tutorials