Android: getResources().getIdentifier(...) does not work for SOME drawables -
i use
int icon = getresources().getidentifier(filename, "drawable", this.getpackagename());
to retrieve id of drawable
resource. works fine of images in list, others sets icon
0 instead of respective id. checked if files exist , named correctly. debug mode shows desired string element can found , correctly written in filename
. drawables
make trouble added later ones working fine. though cleaned project, refreshed, deleted , installed phone...
i not understand problem be. have hint how can find solution? thank you.
Comments
Post a Comment