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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -