P
P
pro4ainik2015-10-11 16:29:40
Android
pro4ainik, 2015-10-11 16:29:40

How to specify path to string programmatically?

I have a string resource called "string" in the "home" folder which is also in the "values" folder how can i set the path programmatically in the java class
TextView texts = (TextView) findViewById(R.id.rs);
texts.setText(Your answer);
Help the kettle

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2015-10-12
@iLLuzor

getResources().getString(R.string.your_string)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question