{"id":2353,"date":"2020-03-17T18:10:36","date_gmt":"2020-03-17T08:10:36","guid":{"rendered":"https:\/\/learntodroid.com\/?p=2353"},"modified":"2021-01-13T09:54:42","modified_gmt":"2021-01-12T23:54:42","slug":"how-to-create-a-simple-alarm-clock-app-in-android","status":"publish","type":"post","link":"http:\/\/10.0.0.14:32769\/how-to-create-a-simple-alarm-clock-app-in-android\/","title":{"rendered":"How to Create a Simple Alarm Clock App in Android"},"content":{"rendered":"\n

I am starting a series on learntodroid.com<\/a> that will show how to build different types of apps in Android. These tutorials will be suitable for beginner Android app developers and will give you exposure to different components and concepts used in Android app development.<\/p>\n\n\n\n

For my first app in this series I have put together a tutorial covering how to build a simple alarm clock app for Android.<\/p>\n\n\n\n

To create a simple alarm clock app in Android you will need to follow these steps.<\/p>\n\n\n\n

  1. Capture the alarm time using a TimePicker<\/li>
  2. Schedule an alarm using Alarm Manager and a Pending Intent<\/li>
  3. Start the Alarm Service using a Broadcast Receiver<\/li>
  4. Use a Notification, Media Player and Vibrator to activate the alarm<\/li>
  5. Managing Dismissal and Snoozing of an Alarm<\/li>
  6. Cancelling an Alarm using the Alarm Manager and a Pending Intent<\/li>
  7. Handle Rescheduling Alarm Service<\/li>
  8. Handle Enabling and Disabling of Alarms<\/li><\/ol>\n\n\n\n

    Along with the content in this post you can also clone the entire project code base written in Java available from GitHub. https:\/\/github.com\/learntodroid\/SimpleAlarmClock<\/a> <\/p>\n\n\n\n

    This project will touch on the following Android components and concepts.<\/p>\n\n\n\n