
The ContentObserver was registered only when the activity was in resumed state. However, in started but paused state (when the activity is visible but not in focus), we still want to receive these notifications to update the view. Therefore, register it on start and unregister it on stop. As a consequence, myAppObserver will be non-null during onActivityResult().