code: public static Drawable getDrawable(String name) {
          Resources res = Resources.getSystem();
          int id = res.getIdentifier(name, TYPE_DRAWABLE, NATIVE_PACKAGE);
          return id == 0 ? null : res.getDrawable(id);
      }
docs: Get a native drawable by name as in 'R.drawable.name'.