0

my string resouce conains following lines

<resources>
    <string name="my_name">Android</string>
    <string name="welcome">Hi @string/name welcome !</string>
    <string name="goodbye">Goodbye @string/name. Have a nice day</string>
</<resources>

my code to retriev the string out as follow

String welcome = mContext.getResources().getString(R.string.welcome);
String goodbye = mContext.getResources().getString(R.string.goodbye);

i like to get output like below

Hi Android welcome !
Goodbye Android. Have a nice day

Thanks for solutions

Riskhan
  • 4,434
  • 12
  • 50
  • 76

0 Answers0