The question is easily misunderstood.
If you are in a valid context (e.g. Activity), there is no difference because the context has a link to resources, so it can directly resolve getString(int);which string returns.
Adding more information for your peace of mind.
getString, . getResources(), .
Android getResources.getString():
public String getString(int id) throws NotFoundException {
CharSequence res = getText(id);
if (res != null) {
return res.toString();
}
throw new NotFoundException("String resource ID #0x"
+ Integer.toHexString(id));
}
?:)
, Resources , " ", .
Activity getString():
.
, , , Resources be stripped of any styled text information. Resources , . Activity - :)