Pause and Resume testing of main activity for displaying add picture dialog