Android examples for App:Resource
get String from Context Resource
//package com.java2s; import android.content.Context; public class Main { public static String getString(Context context, final int mStringId) { return context.getResources().getString(mStringId); }//from w w w . j a v a2 s . c om }