please do not use getCurrentActivity, this should be only used for asserting that one is in a certain activity and a few other rare cases.  either get the targetContext (proper) from the instrumentation, or get the activity from the rule (kind of proper), or just use the getResourcesString method from utils that uses the targetContext...