java - How to Find All Resource IDs in Android -


i know how find resource given id (e.g. getresources().getstring(r.string.mystring), if want list of id names, how do that?

it r.resource.class.getfields()

for instance

field[] fields = r.id.class.getfields(); for(int z = 0; z < fields.length; z++){     somearray[z] = fields[z].getint(); } 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -