How can I use Robotium to verify that my Activity handles onPause()
, onDestroy()
, onResume()
and similar calls correctly?
In my Robotium test I can call stuff like
solo.getCurrentActivity().onKeyDown(0, null);
but how can I simulate an activity being destroyed and recreated? I don't see any
solo.getCurrentActivity().onPause()
or
solo.getCurrentActivity().onDestroy()
methods that I can use? Is this not what Robotium is designed to do?