i have key value pair in string.xml - key - feedback value - feedback valuable.
how can pull same value within programme? want use same in toast message notify user.
edit: application supposed support different languages. how can pick value of string of contextual language? can use getstring() method pick translated value?
use this-> getresources.getstring(r.string.feedback);
for toast message ->
toast.maketext(this, getresources.getstring(r.string.feedback), toast.length_short).show();
Comments
Post a Comment