Android Context Get getString(Context context, int id)

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

Description

get String

Declaration

public static String getString(Context context, int id) 

Method Source Code

//package com.java2s;

import android.content.Context;

public class Main {
    public static String getString(Context context, int id) {
        return context.getResources().getString(id);
    }/*  w  ww .ja v  a2s.c  o  m*/
}

Related

  1. getVersionName(Context context)
  2. getRawInteger(Context c, int resId)
  3. getBitmapFromAssert(Context thisContext, String name)
  4. getString(Context context, int resId, Map replacement)
  5. getStringFromXml(Context context, int resId)
  6. getBoolean(ContentValues alarm, String key)
  7. findOne(Context context, Uri uri)