[android] Using getResources() in non-activity class