I run a junit test on Android that extends ActivityInstrumentationTestCase2. I use this to get started.
This activity uses a subclass of the application object to obtain some parameters. I get the application object from the context.
Unfortunately, ActivityInstrumentationTestCase2 does not provide access to the context. Is there a way to access the context before getting started?
source share