I'm tring to get an id of the picture by name
someId = "hd_2"
Resources.getSystem().getIdentifier(someId, "drawable", getPackageName());
public static final class drawable {
...
public static final int hd_2=0x7f020088;
...
}
Why it might return java.lang.IllegalArgumentException : Invalid method?
update:
I moved Resources.getSystem().getIdentifier
from onCreate to onStart, now it returns 0.