Made time only 12 hours instead of 24, and fixed main activity showing when an application is installed while this app is running in the background.