What is the difference between getResources().getString(...)and getString()when called from my activity? I read that it getText(...)returns stylized text, but when should I use getResources(), and not directly the caller getString()?
getResources().getString(...)
getString()
getText(...)
getResources(
They have nothing to do with them if you use the Android source code and especially the Context class for example.
public final String getString(int resId) { return getResources().getString(resId); }
getString()is a convenient way because it is used regularly (you do not need to enter getResources()...). In addition, they are the same.
getResources()