Java tutorial
//package com.java2s; import android.content.Context; public class Main { /** * Returns the Google API CLIENT SECRET to use in API calls * @param applicationContext * @return */ private static String getClientSecret(Context applicationContext) { int RClientSecret = applicationContext.getResources().getIdentifier("gdocs_clientsecret", "string", applicationContext.getPackageName()); return applicationContext.getString(RClientSecret); } }