Code Along 02 - Intents!
Code Along 02 - Intents!
• Make
a simple
activity
with one
button
Method 1: Starting a new activity
• At this point, right click the “app” folder
(Assuming you are in “Android” view)
Method 1: Starting a new activity
• Go to New -> Activity -> Empty Views Activity
Method 1: Starting a new activity
• Here, all you’ll have to do is give the new
activity a valid name WHILE making sure
“Generate a Layout File” is checked
Method 1: Starting a new activity
• You will automatically be provided with a
blueprint of a new
activity
OR
Method 1: Starting a new activity
Method 1: Starting a new activity
• NOTE: As it stands, the
only way to close
activity #2 is by
pressing “Back”
Source Activity:
Destination Activity:
Method 2 – Passing Values