1. This work is licensed under the Apache 2.0 License
Android Study Jams
Session 2
T R Sai Rakshith
Technical Team Member
2. This work is licensed under the Apache 2.0 License
Let’s get started
3. This work is licensed under the Apache 2.0 License
Equipment needed for each student
० Computer
० Internet connection
० (Optional) Android device & USB cable
० Android Studio
4. This work is licensed under the Apache 2.0 License
Official tool to build Android apps
Android Studio
5. This work is licensed under the Apache 2.0 License
Android Emulator
Emulate an Android device on your computer.
Run your app on the emulator
6. This work is licensed under the Apache 2.0 License
० Basic computer literacy
० Basic math skills
० Computer & headphones
० Internet connection
० (Optional) Android device & USB cable
Prerequisites
7. This work is licensed under the Apache 2.0 License
Learning Objectives
० Build your first Android apps
० Set up Android Studio on your computer
० Learn the basics of the Kotlin programming language
8. This work is licensed under the Apache 2.0 License
What will you learn?
2
3
4
1 Introduction to Kotlin
Create your first
Android app
Build a basic layout
Add a button to an app
Learn to code in Kotlin, a modern programming
language that helps developers be more productive.
Learn to create and run your first Android app in
Android Studio.
Learn the basics of layouts in Android by creating your
very own birthday card app!
Learn how to use classes, objects, and conditionals to
create an interactive dice roller app.
Badges
Earn badges
at the end of each
pathway!
Android Basics
9. This work is licensed under the Apache 2.0 License
What will you learn?
6
5 Get user input
Display a scrollable
list
Learn how to get user input within an app by building a
tip calculator app.
Learn how to display a list of text and images in an
app.
Badges
Android Basics
7
Navigate between
screens
Add another screen to your app by adding a second
activity.
8
Intro to Navigation
Component
Learn how the Jetpack Navigation component makes
it easier to manage navigation within your app.
10. This work is licensed under the Apache 2.0 License
What will you learn?
10
9 Architecture
Components
Advanced
navigation examples
Learn good app architecture principles by building a
game app to unscramble words.
Combine what you’ve learned so far in a more
advanced app that demonstrates navigating
between multiple screens.
Badges
Android Basics
11 Coroutines Write code for more advanced and complex
Android apps.
12 Get and display data from
the internet
Retrieve and display images over the internet with
HTTP and REST.
11. This work is licensed under the Apache 2.0 License
What will you learn?
14
13 Introduction to SQL,
Room, and Flow
Use Room for data
persistence
Learn the basics of reading and manipulating data with
SQL, and how to create and use relational databases in
an Android app with the Room library.
Use the Room library to allow your apps to read
and write from a database.
Badges
Android Basics
15
Learn when and how to use WorkManager, an API that
handles background work that needs to run regardless
of whether the application process is still running.
Schedule tasks with
WorkManager
12. This work is licensed under the Apache 2.0 License
Concept Overview
13. This work is licensed under the Apache 2.0 License
० It's common to make lists for all sorts of situations in your everyday life such
as a list of things to do, a list of guests for an event, a wish list, or a grocery
list.
० Learning how to create and use lists is an important programming concept
to add to your toolbox, and it will enable you to create more sophisticated
apps.
० In programming, lists are also very useful. For example, there could be a list
of news articles, songs, calendar events, or social media posts within an
app.
Scrollable Lists
14. This work is licensed under the Apache 2.0 License
० If you think about the apps you commonly use on your phone, almost every
single app has at least one list.
० The call history screen, the contacts app, and your favorite social media app
all display a list of data.
० Some of these apps display a simple list of words or phrases, where others
display more complex items such as cards that include text and images.
Scrollable Lists
15. This work is licensed under the Apache 2.0 License
० To help you build apps with lists, Android provides the RecyclerView
० RecyclerView is designed to be very efficient, even with large lists, by
reusing, or recycling, the views that have scrolled off the screen.
० When a list item is scrolled off the screen, RecyclerView reuses that view for
the next list item about to be displayed.
० That means, the item is filled with new content that scrolls onto the screen.
This RecyclerView behavior saves a lot of processing time and helps lists
scroll more smoothly.
Recycler Views
16. This work is licensed under the Apache 2.0 License
० Android used to use ListView or GridView classes for displaying lists. A
RecyclerView can be thought of as a combination of a ListView and a
GridView.
० However, in a RecyclerView, there are features that separate your code into
maintainable components even as they enforce memory-efficient design
patterns.
० When a list item is scrolled off the screen, RecyclerView reuses that view for
the next list item about to be displayed.
Recycler Views
17. This work is licensed under the Apache 2.0 License
० An Adapter object acts as a bridge between an AdapterView and the
underlying data for that view.
० The Adapter provides access to the data items. The Adapter is also
responsible for making a android.view.View for each item in the data set.
० An item view type that causes the AdapterView to ignore the item view.
० When a list item is scrolled off the screen, RecyclerView reuses that view for
the next list item about to be displayed.
Introduction to Adapters
18. This work is licensed under the Apache 2.0 License
THANK YOU
Editor's Notes
That’s all we’ll cover for today -- let’s get started!
Pathway 2 is where you create your first app! You will need to download and install Android Studio on your computer. This is the official tool that professional developers use for Android development. This is where you’ll be writing your Kotlin code and building your apps.
In Android Studio, you can also use the Android Emulator, which can emulate various Android devices on your computer. The emulator allows you to run your app and it provides almost all capabilities that a real Android device would have. If you do have a physical device and want to use it, there are also instructions in Pathway 2 to get you setup.
[Students can either use the emulator or a physical device to test their app, it’s up to personal preference.]
Here are some the prerequisites that will be helpful. Having basic computer literacy and basic math skills is recommended. You’ll also need a computer and access to the internet to take the online course. [Mention WiFi instructions if necessary.]
After this short presentation, we’ll all be working independently on the course. Use headphones to play the videos, so it doesn’t disrupt others around you.
It’s also helpful if you have an Android device so you can test your app. A USB cable will be needed for connecting your phone to the computer. If you don’t have an Android device, don’t worry, you can still use your computer to emulate an Android device.
Let’s talk about what you will learn as part of Android Basics. First and foremost, the goal is for you to build your first Android apps. To do this, you’ll install Android Studio on your computer, which is an application to build Android apps. Along the way, you will be exposed to programming concepts and the Kotlin language.
At the end, we’ll also talk about resources on how you can continue learning and building apps beyond this event.
Now that you’re familiar with the learning platform and how the course looks, let’s dive into some important concepts that you’ll be learning about.