activityIndicator should be added to the window before calling hide() or show() on it. It would be a no-op otherwise.