You need to ensure that the diary app maintains state when the user switches between apps or restarts the device on which the app is running