billion people in the world estimated to have a smartphone in 2019. • mobile devices (excluding tablets) generated 51.51% of global website traffic. • mobile OS market share worldwide (based on December 2019 data) is 74.13% Android vs 24.79% iOS. Meaning: • a lot of employment AND learning opportunities.
Build Layouts and Handle User Interaction Lab 2: Create content and take users through different flows Lab 3: Save data Lab 4: Polish App with animations and styling
have at least one screen that the user can interact with • In Android, a screen is called an Activity • Activities are where we write Java code to surface different content, handle user interactions and more!
what’s displayed on the screen is usually designed in XML files • Layouts are usually composed of multiple views like Buttons, TextViews, ImageViews, and more • XML is a type of markup language that allows us to add, position and customize views
(aka programmatically) MainActivity.java activity_main.xml Sets up views Each activity has a corresponding layout file that’s set with setContentView(R.layout.activity_main)
user interactions • Listeners are Android’s way of ‘listening’ for different types of user actions and reacting to it • The most common type of user action is a single tap, and in Android it’s handled with an OnClickListener
multiple people working on the same code. GitHub is a great way to : • save your progress • have your code living on the Internet • collaborate with others without any adverse effects to current code
tasks, and a set Optional tasks • Required tasks must be finished and submitted before the end of the class • Optional tasks are more advanced and allow you to explore Android development in more depth • Try implementing the tasks yourself before consulting the more detailed walkthrough guide
you can work together with your classmates • Turn on your camera! • Introduce yourself! • Support each other throughout the session - helping debug issues helps everybody gain a deeper understanding of the concepts
for Week 2. Follow the guides to work through the tasks, and ask people in your group for help when you’re stuck. By the end of the lab, make sure you have created your ReadMe and submitted your project! Your submission should include a GIF that shows your app: 1) displaying a question and 2) displaying the answer when the question is tapped