-1

I would like to know the difference between

R.string.mystring 

and

public static final String myString

in Android.

Which is better performance wise and why?

droidchef
  • 2,237
  • 1
  • 18
  • 34

1 Answers1

2

R.string.mystring --> can be converted to other languages (based on user's locale) LOCALIZATION

public static final String myString --> stays in one language.

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
TheLostMind
  • 35,966
  • 12
  • 68
  • 104