From the course: Android Development: Understanding Intents

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set an alarm

Set an alarm - Android Tutorial

From the course: Android Development: Understanding Intents

Start my 1-month free trial

Set an alarm

- [Instructor] In this chapter we're going to look at ways that your app can control and communicate with other common apps on the system, with more of a focus on applications and a little less on media. So here in Android Studio, I'm going to open up the activity_apps layout. And you can see that there are buttons here for setting an alarm, and there's showing location on a map, followed by sending an email message, initiating a phone call, performing a web search, and then something called pending intents. Which we'll learn a little bit more about later in the course. So we're going to start off by seeing how to set an alarm, using whatever apps are available to serve as an alarm clock. So let's go ahead and open up the AppsActivity.java class, and what we're going to do is first scroll up and just like in the other examples, you can see that I've got some code here that sets up the button click listeners, and then I have some code that sets up a notification channel, and we'll use…

Contents