resources.getstring vs context.getstring code example
Example: resources.getstring vs context.getstring
/**RESOURCES
* Returns the resources associated with the view directly.
*/
public Resources getResources() {
return mResources;
}
/**CONTEXT
Returns the context the view is running in, through which it can
then access the current theme, resources, etc.*/
public final Context getContext() {
return mContext;
}