Android Context Get getString(Context context, int resourceId)

Here you can find the source of getString(Context context, int resourceId)

Description

get String

Declaration

public static String getString(Context context, int resourceId) 

Method Source Code

//package com.java2s;

import android.content.Context;

public class Main {
    public static String getString(Context context, int resourceId) {
        if (context != null) {
            return context.getResources().getString(resourceId);
        }// w w  w  .ja v a  2s  . c  om
        return null;
    }
}

Related

  1. getSignatures(final Context context)
  2. getSizeName(Context context)
  3. getSmiledText(Context context, CharSequence text)
  4. getSmsId(Context context)
  5. getString(Context context, String key, String defValue)
  6. getStringFromResource(int resource, Context context)
  7. getStringResourceByName(String aString, Context context)
  8. getSystemDiskCacheDir(Context context)
  9. getTCBoldFont(Context context)