## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

# Monitoring time

For the next four recipes, we will use Intents to build the application imagined by Vince Vaughn in the movie The Internship. This application is fairly simple and can be summarized as follows. If you send a text message to someone between 12 a.m. and 6 a.m., well, it is probably a bad idea as you might be quite influenced by alcohol. The solution? You have to solve an equation to prove that you're OK!

On a serious note, here's what we will have to do:

1. Check the time and redirect the user from the default text message app to ours if the time is between 12 a.m. and 6 a.m
2. Propose a fairly simple equation for the user to solve
3. Pick a contact in the contact list held on the phone
4. Write a text message
5. Send it to the selected contact

In this ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required