I'm also using Robotium testing framework. My application does some setup work that is necessary to be done first in order for the tests to work.
I know that ActivityInstrumentationTestCase2#getActivity is called, the activity is started if it hasn't already. But I need something setup first by the app or the code stops in error.