Android - Integer[] returning a number instead of String value -


i have custom adapter , inside data source:

public integer[] mlist = {         r.string.a,         r.string.b,         r.string.c,         r.string.c,         r.string.d,         r.string.e,         r.string.f,         r.string.g, }; 

when set textview text this:

mtextview.settext(mlist[position]); 

the value whatever string represents. if this:

mtextview.settext(mlist[position] + " text"); 

the value 10 digit number. shows this:

2126528311 text 

why , how can resolve it

change line

mtextview.settext( getresources().getstring(mlist[position]) + " text"); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -