My application is in running mode[foreground] and user clicks on home button, which puts application to background[and still running]. I ha
For an alarm, you want to take a look at starting an Android Service
This service will be more resilient than your application which may be killed while in the background and can fire off an intent to bring your application to the front (or restart it if it was killed) when it is time for the alarm to go off.