GDSC IIIT-B hosted its first-ever Android Study Jams. In this session, we discuss the advantages of Kotlin and how to get started with Android Development.
2. What we do?
We use Google's technologies to
● spread awareness about open-source in our institute
● solve real-world problems that people may face in their day-to-day
lives.
3. What’s in it for students?
We provide a platform for inviting speakers and conducting regular
sessions/workshops on technical domains and help in mentoring peers
through projects, workshops, etc.
Through GDSC, students grow their knowledge in a peer-to-peer learning
environment and build solutions for local businesses and their
communities.
4. This work is licensed under the Apache 2.0 License
Android Study Jams
5. This work is licensed under the Apache 2.0 License
1. Why are you here?
2. What are your goals?
3. How do you plan to achieve them?
6. This work is licensed under the Apache 2.0 License
What are Android Study Jams?
Android Study Jams are community-organized study groups
for people to do hands-on learning for Android app development.
Android Basics is a series of sessions focused specifically on learning
how to build Android apps without prior Android experience.
7. This work is licensed under the Apache 2.0 License
8. This work is licensed under the Apache 2.0 License
9. 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
10. This work is licensed under the Apache 2.0 License
Android Basics
in Kotlin Course
11. This work is licensed under the Apache 2.0 License
Kotlin Basics
For Android
12. This work is licensed under the Apache 2.0 License
A Pathway
13. This work is licensed under the Apache 2.0 License
Take a Quiz
14. This work is licensed under the Apache 2.0 License
Earn badges!
15. This work is licensed under the Apache 2.0 License
Kickstart your
Developer profile !
Carrie Sawyer
Photo by Christopher Campbell on Unsplash
16. This work is licensed under the Apache 2.0 License
Build an app !
Participate in the Hackathon*
And Earn Certificates !
17. This work is licensed under the Apache 2.0 License
Get Featured*
18. 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 (3 hours)
(1 hour)
(2 hours)
(1 hour)
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
19. This work is licensed under the Apache 2.0 License
What will you learn?
6
5 Get user input
Display a scrollable
list
(2 hours)
(3 hours)
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
(2 hours)
Add another screen to your app by adding a
second activity.
8
Intro to Navigation
Component
(1 hour)
Learn how the Jetpack Navigation component makes
it easier to manage navigation within your app.
20. This work is licensed under the Apache 2.0 License
What will you learn?
10
9 Architecture
Components
Advanced
navigation examples
(2 hours)
(2 hours)
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.
(1 hour)
12 Get and display data from
the internet
Retrieve and display images over the internet with
HTTP and REST.
(1 hour)
21. 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
(1 hour)
(2 hours)
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
(1 hour)
22. This work is licensed under the Apache 2.0 License
Concept Overview
23. This work is licensed under the Apache 2.0 License
Pathway 1 Pathway 2 Pathway 3
Use Kotlin to start writing Android apps
Kotlin helps developers be more productive
Kotlin Programming Language
24. This work is licensed under the Apache 2.0 License
25. This work is licensed under the Apache 2.0 License
26. This work is licensed under the Apache 2.0 License
27. This work is licensed under the Apache 2.0 License
28. This work is licensed under the Apache 2.0 License
29. This work is licensed under the Apache 2.0 License
30. This work is licensed under the Apache 2.0 License
Write and run Kotlin
code in the browser
Kotlin Playground
Pathway 1 Pathway 2 Pathway 3
31. This work is licensed under the Apache 2.0 License
Pathway 1 Pathway 2 Pathway 3
Official tool to build Android apps
Android Studio
32. 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
Pathway 1 Pathway 2 Pathway 3
33. This work is licensed under the Apache 2.0 License
The part of your app where
the user interacts with it
User Interface
Pathway 1 Pathway 2 Pathway 3
34. This work is licensed under the Apache 2.0 License
Continue learning!
Keep coming back to Study Jams!
Learn on your own by going through Android Basics in Kotlin Course.
Modify your existing apps and add more features to them.
Additional resources to check out:
● Official Android Developers Site: developer.android.com
● Learn Kotlin By Example
● Official Android Developers Blog (for announcements)
● Android Developers Medium Blog (for more technical articles)
● Android Developers YouTube channel
● Follow @AndroidDev on Twitter
● Subscribe to the Android Developer Newsletter
35. This work is licensed under the Apache 2.0 License
Share what you’ve
learned with
#AndroidStudyJams
Notes de l'éditeur
This is for people with little to no programming experience, we start at the beginning and you’ll learn how to build simple Android apps in Kotlin!
Before we dive into the content, I want to get to know you better and what brought you here. Please take out a piece of paper. Take a moment to think about your answers to these questions and write them down.
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.
You’ll be working through the Android Basics in Kotlin course. This is a free online training course developed by Google for people like yourself to learn how to build basic Android apps.
The course is made up of units, and units are composed of pathways.
First we’ll be focused on the first unit, which is shown here. It has made up of 4 pathways. In Session 1, you’ll work on the first 3 pathways: 1) Introduction to Kotlin, 2) Create your first app, and 3) Build a basic layout. In Session 2, you’ll work on the 4th pathway, which is a little longer. [Mention future sessions if your group will be meeting for longer.]
You may be wondering, what is a pathway? It’s an ordered sequence of activities to learn a specific skill. An activity can be a video, hands-on coding tutorial (known as a codelab), an article, or quiz. You can see at least 4 activities in this first pathway. All these activities are meant to help you reach specific learning objectives by the end of this pathway.
There’s a quiz at the end of each pathway to check your understanding of what you just learned. Here’s what a sample quiz looks like. There are no limits to the number of retries for a quiz. But if you get a question wrong, try to understand what the concept is (even if you need to look back at the source material), before answering again.
After you pass the quiz, you earn a badge like this one!
The badges you earn can be saved to your developer profile. When you are taking the course, be sure to sign in (in the top right corner) and create a developer profile if you haven’t already. It’s very quick to create. As you earn more badges, you can see them on your developer profile and favorite them, as shown here.
[Read more on the Google developer profile]
layout defines the structure for a user interface in your app, such as in an activity. All elements in the layout are built using a hierarchy of View and ViewGroup objects. A View usually draws something the user can see and interact with.
Finding Views by ID taking references
View binding lets you more easily write code that interacts with the UI elements in your app
Logcat in Android Studio to troubleshoot problems like the app crashing.
Object oriented concepts
Screen and Navigation
“lightweight threads”
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.
In this course, you’ll be learning how to code in Kotlin. Kotlin is a programming language that you’ll use to build Android apps. Kotlin is a modern and popular programming language, known for helping developers be more productive. Kotlin allows you to be more concise when writing your code, and you can write safer code that’s less prone to errors.
As a result of many great language features, Kotlin has quickly gained momentum in industry. It is reportedly one of the fastest growing programming languages, according to GitHub.
Pathway 1 of the course is focused on helping you understand the basics of Kotlin.
[Read about Android’s Kotlin-first approach]
To make it easier for you to learn, you’ll be writing your code in the Kotlin Playground which you can access via the web browser. The site looks something like this. You can write your code in this window and hit the green arrow to run it. The result of your code (known as the output) will show up at the bottom of the window (where it says “Hello, world!”).
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.]
Lastly, in Pathway 3, you’ll learn the basic concepts of customizing the user interface of a simple app. The user interface (also known as UI) of your app includes what the app looks like and how the user interacts with it.
First, you can keep coming to Study Jams as we cover more topics to make you a full fledged Android developer.
Second, you can continue learning on your own with the Android Basics in Kotlin course.
Third, you can modify the apps we built together and learn by adding more features to them. You can use Google search or look at existing code samples and videos online for how to add additional features to your app.
To stay connected, check out these additional resources, which professional developers use to stay up to date on Android. As you get into more advanced features, you will likely need to learn more programming concepts. You can check out the Learn Kotlin By Example resource for that.
Thank you so much for being a part of Android Study Jams! Good luck on the beginning of your Android developer journey!
Great job everyone on your progress!
You can post photos or highlights from today’s session on social media using #AndroidStudyJams. [Include your own developer community and chapter hashtags (i.e. #developerstudentclubs #dsccmu)]
We encourage you to share a screenshot of your birthday card app!