android - Problems accessing my strings.xml items.... i got numbers and not the string value -


when java class try acces item of strings.xml file, got numbers, mem position, , dont string value of item

for example:

if (parent.getitematposition(pos).tostring().equals(r.string.perdayspermission)) 

this code: r.string.perdayspermission haves give me "per days", gives me extrange number: 234552634

why?

use getstring() e.g.,

if (parent.getitematposition(pos).tostring().equals(getstring(r.string.perdayspermission))) 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -