get Res String - Android App

Android examples for App:Resource

Description

get Res String

Demo Code


//package com.java2s;
import android.content.Context;

public class Main {
    public static String getResString(Context context, int id) {
        return context.getResources().getString(id);
    }//from w  ww  . j av  a 2 s  .co m
}

Related Tutorials