get String from Context Resource - Android App

Android examples for App:Resource

Description

get String from Context Resource

Demo Code


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

Related Tutorials