I noticed that the Activity class has two different methods for getting a String resource. This is possible using:
getString(int resId) : Return the localized string from the default string table of the application package.
getResources().getString(int id) : returns the string value associated with the specific resource identifier. It will be stripped of any textual information in style.
I donβt understand what is the difference between both methods. Can someone tell me?
android string resources
Valentin Jan 25 '12 at 8:16 2012-01-25 08:16
source share