Skills Expanded

Add Implicit and Explicit Intents to an Android Candy Store App

What you'll learn

In this project you’ll follow along with our instructions and finish building a candy store app with Android Studio. You’ll finish creating the functionality of the app by adding different features - like using an Explicit Intent to open another Activity and using Implicit Intents to launch a map, dial a phone number and share content.

Table of contents

Setup
15m
  • Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Start the Store Information Activity
20m
  • Write code to launch the InfoActivity class when the existing MenuItem is selected.
Start the Google Maps Activity
20m
  • Write code to launch Google Maps for a specific address when a TextView is clicked.
Start the Phone Activity
20m
  • Write code to launch a dial Intent with a pre-defined phone number when a TextView is clicked.
Share a Candy with an Intent
20m
  • Write code to launch an Intent with the action ACTION_SEND when a menu item is selected, and open a Share MenuItem so that users can share the selected candy.

About the author

Sarah just finished her PhD in Computer Science and in that process found two loves: inventing things and teaching. Working at Pluralsight allows her to do what she loves and work with some amazing people. When she's not teaching she's outside, enjoying the Florida sunshine with her family.

Ready to upskill? Get started