An intent is a message that's sent to either the application framework or to other components within your app. Intents that launch activities need two arguments: a context, and a reference to the target activity's Java or Kotlin class. Learn how to create an intent that starts a new activity in your application.
- [Instructor] In order to navigate…from one screen to another in an Android app,…you'll create something called an Intent.…An Intent is a set of instructions.…Each Intent can include an action,…typically expressed as a constant,…but it can also include arbitrary data values…known as extras.…In order to navigate, create an Intent that references…the current activity as a context,…and the desired target activity's class.…The application framework is responsible…for interpreting the Intent.…
It creates an instance of the target activity's class,…and then loads it, and the user just sees…the new Intent screen appear.…To demonstrate this, I'll create a new activity.…I'll start in my Android scope and I'll right-click…on the app module.…I'll select new activity, and I'll choose basic activity.…And I'll accept the activity name of Main2Activity.…And I'll set it as a Launcher Activity.…This is going to become my new primary screen.…
And I'll click finish.…Now, when you create the new activity,…Android Studio automatically registers it…
- Installing Android Studio
- Creating your first Android Studio project
- Managing configuration files, including Gradle scripts
- Defining screens with activities
- Implementing designs in XML layouts
Skill Level Beginner
Android Studio Essential Trainingwith David Gassner2h 28m Beginner
Android P First Look for Developerswith David Gassner36m 30s Beginner
What you should know2m 10s
1. Android Development Fundamentals
2. Getting Started
3. Explore Android Projects
4. Android App Architecture
Next steps1m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.