-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,066
  • 1
  • 15
  • 32

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
  • 63,838
  • 26
  • 184
  • 242
TheLostMind
  • 35,468
  • 12
  • 66
  • 99