Added onPause() and onResume() methods to DisplayMessageActivity.