Android examples for App:Resource
get resource String ID
//package com.java2s; import android.content.Context; public class Main { public static int getStringID(Context context, String key) { return context.getResources().getIdentifier(key, "string", context.getPackageName()); }// w w w .j av a 2 s . c o m }