Source code for the app I made. It is an alarm that you must shake to disable.