SA
Skip to main content

Extracting string in Android

The file strings.xml is located at res/values/strings.xml.

<resources>
<string name="app_name">CS310 Sunghyun Cho (scho1939)</string>
<string name="message">Fight On!</string>
</resources>

Then refer to the saved text like below.

android:text="@string/message"