Android examples for android.content.res:Resources
get Resource String from Context
import android.content.Context; public class Main{ public static String getResourceString(Context context, int strId) { return context.getResources().getString(strId); }/*from w w w. j a v a 2s. co m*/ }