Does anyone know how to access JUnit’s own project res/ folder compiled R instance when extending from ServiceTestCase?
The usual way does not work:
getInstrumentation().getContext().getResources()...
Because it turns out ServiceTestCase does not have a getInstrumentation() since it does not extend InstrumentationTestCase method.
Thanks in advance.
This hack works from my
ServiceTestCasesubclass:Although a more standard way to this is welcome.