Use Moove to set an alarm after a period of inactivity. Moove works in the background after a simple tap, so you do not have to keep the app open.