• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to use the strings from resource?

Bodom

Newbie
Hi everyone,

I have a problem, when I want to use the strings from string.xml.

I tried something like this:

int result = 1;
String mystr = "some text" + result + R.string.myresstring;

But in the new string mystr is not the String from R.string.myresstring, there is the integer id from the resource.

But how can I acces the String behind this int id? I hope you understand what I mean ;D
 
Back
Top Bottom