T
T
TaTIk942016-09-01 17:22:59
Java
TaTIk94, 2016-09-01 17:22:59

Can't embed resource in intent?

there is text in the resource folder, I can’t access the resource through intent,
Intent.putExtra (how to send text from the String folder to Activation 2)
And extract this text to Activation 2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2016-09-01
@TaTIk94

You need the putExtra(String, String) method
to get a string from resources - Context.getString(R.string.my_string). Activity is Context.
In the second activity intent.getStringExtra().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question