Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; public class Main { /** * gets string from resource values * * @param context context of calling activity * @param stringId resource id * @return string */ public static String getStringResource(Context context, int stringId) { return context.getResources().getString(stringId); } }