Java tutorial
//package com.java2s; import android.content.Context; public class Main { private static String getString(Context context, int id) { if (id == 0) { return null; } return context.getString(id); } }