忘れがちなのでメモ
// com.android.internal.R.string.hogeのリソースIDを取得
int resId = Resources.getSystem().gerIdentifier("hoge", "string", "android");
ちなみに一般アプリのリソースの取り方は
// com.example.sampleアプリのR.string.hogeのリソースIDを取得
int resId = context.getResources().gerIdentifier("hoge", "string", "com.example.sample");
こっちの場合はContextが必要