I am trying to call the following function to get the resource id:
Integer drawableId = Resources.getSystem().getIdentifier(newString, "drawable", getPackageName());
The issue here is that the id is always 0, as its not found/ invalid.
Is there a way to get call the getIdentifier() function from within a class and not in a activity or fragment?