get Resource String from Context - Android android.content.res

Android examples for android.content.res:Resources

Description

get Resource String from Context

Demo Code

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*/

}

Related Tutorials