Here you can find the source of getString(Context context, int id)
public static String getString(Context context, int id)
//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*/ }