R
R
Ruslan Kochnev2019-03-03 14:05:54
Java
Ruslan Kochnev, 2019-03-03 14:05:54

How to pass a string from strings.xml to another activity?

There is an activity to which data is passed using putExtra. But you also need to pass a string from strings.xml. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Kochnev, 2019-03-03
@Luc1fer99

intent.putExtra("key", getString(R.string.[string name]));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question