Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static String getResourceString(Context c, int id) { return c.getResources().getString(id); } }