1. This work is licensed under the Apache 2.0 License
Android Study Jams
New to Programming Track: Session 1
2. This work is licensed under the Apache 2.0 License
Android Study Jams
New to Programming Track: Session 1
3. 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
4. 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
० Discover resources to continue learning
5. This work is licensed under the Apache 2.0 License
TOPIC TIME
Hello and Welcome 3:00- 3:20
Presentation 3:20- 3:50
End of Orientation and Start of Unit 1
independently
3:50- 4:00
Today’s Schedule
6. This work is licensed under the Apache 2.0 License
Android Basics
in Kotlin Course
7. This work is licensed under the Apache 2.0 License
Unit 1: Kotlin Basics
For Android
8. This work is licensed under the Apache 2.0 License
A Pathway
9. This work is licensed under the Apache 2.0 License
Take a Quiz
10. This work is licensed under the Apache 2.0 License
Earn badges!
11. This work is licensed under the Apache 2.0 License
Developer profile
Carrie Sawyer
Photo by Christopher Campbell on Unsplash
12. This work is licensed under the Apache 2.0 License
Concept Overview
13. 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
14. 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
15. This work is licensed under the Apache 2.0 License
Pathway 1 Pathway 2 Pathway 3
Official tool to build Android apps
Android Studio
16. 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
17. 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
18. This work is licensed under the Apache 2.0 License
Aa
Button
Layouts
Views
Layouts
Pathway 1 Pathway 2 Pathway 3
19. This work is licensed under the Apache 2.0 License
Hello Android!
Views
TextView ImageView Button
Pathway 1 Pathway 2 Pathway 3
20. This work is licensed under the Apache 2.0 License
Unit 1
Pathways 1 through 3
21. This work is licensed under the Apache 2.0 License
Start here:
g.co/android/studyjams
Collect your first badge!
22. This work is licensed under the Apache 2.0 License
New to Programming
track
Start Course
23. This work is licensed under the Apache 2.0 License
Unit 1
Pathway 4
24. This work is licensed under the Apache 2.0 License
Earn a new badge!
25. This work is licensed under the Apache 2.0 License
Concept Overview
26. This work is licensed under the Apache 2.0 License
MainActivity
An activity provides the
window in which the app
draws its UI.
Activity
27. This work is licensed under the Apache 2.0 License
Class and object instances
A class is like a blueprint, which contains
instructions for how to create something.
An object instance is an actual Dice that’s
created from the blueprint.
Object instance
A second object instance
A third object instance
Dice class
28. This work is licensed under the Apache 2.0 License
Go to g.co/android/studyjams
Start Android Basics in Kotlin Course
Work on Unit 1
29. This work is licensed under the Apache 2.0 License
Share what you’ve
learned with
#AndroidStudyJams
30. This work is licensed under the Apache 2.0 License
RSVP to these events,
visit:
gdsc.community.dev/
cristal-e-college
or
gdsc.community.dev/
cebu-institute-of-
technology-university
// Next Meeting:
Week 2 (October 8)
Week 3 (October 15)
Week 4 (October 22)
Awarding Night (October 31)
31. This work is licensed under the Apache 2.0 License
Learn More
32. This work is licensed under the Apache 2.0 License
Continue learning!
More units in the Android Basics in Kotlin Course will be released soon!
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
● Kotlin Vocabulary series
● 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
Version 1.0
Editor's Notes
Hi everyone! My name is <Insert Name> and welcome to Android Study Jams! This is session 1 of the New to Programming Track.
This track 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!
If you already have programming experience, consider the Prior Programming Experience track, where the content will be introduced at a faster pace.
Assuming you are in the right place, here are some the prerequisites that will be helpful for this track. 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 this New to Programming track of Android Study Jams. 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.
Let’s look at the schedule for this session. [Please update this schedule accordingly before your event.]
First, we have a short presentation, which we’re doing right now. We’re covering some logistics and a high-level introduction to the concepts, to help you with the hands-on portion of the session later.
Once I’m done talking, you’ll be able to dive into the course. You’ll be working independently on 3 pathways in the first unit of the course. This is just a suggested schedule. You can work through the pathways at your own pace and let me or any of the other facilitators know if you have questions, you can message us via messenger and facebook.
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.
In this track, 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 the last pathway of Unit 1.
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]
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, and ranked as the #4 most loved programming language among developers, according to the 2020 Stack Overflow Developer Survey.
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.
The layout of an app is the design or arrangement of what the user sees on the screen. In Android, a layout is made up of Views.
Here are some examples of types of Views that are provided by Android: TextView for displaying text, ImageView for displaying images, and Button to perform some action when tapped.
Start by working on the first pathway in Unit 1 of the Android Basics in Kotlin course.
Open the course page with the link we provided you, and you will automatically be awarded this badge for attending Android Study Jams! Save it to your developer profile, and create a profile if you haven’t already.
Then under the New to Programming track in the left hand box, click the green button to start the Android Basics course.
In this session, you’ll complete Unit 1 of the Android Basics in Kotlin course by finishing Pathway 4: Add a button to an app. In this pathway, you’ll be building an interactive app called the Dice Roller app. It rolls a dice when the button is pressed and updates the screen with the result.
At the end of the pathway, if you pass the quiz successfully, you earn this badge for your developer profile!
Let’s dive into some of the high-level concepts you’ll be learning.
To build this app, you’ll need to understand what an activity in Android is.
An Activity is the part of your app that presents a window that can display the app's content on the screen.
In the Dice Roller app you’ll be building, there is only one Activity called the MainActivity. When you open up the app, the MainActivity launches, the layout is drawn on the screen, and the user can start interacting with the app. You will be modifying the MainActivity by adding Kotlin code for what should happen when the user taps the button in the app.
Introduction to Activities
Activity class
As you write Kotin code for your app, you’ll need to understand what classes and objects are. You can think of a class like a blueprint. It contains instructions for how to create something. From the Dice blueprint, you can create actual Dice.
More specifically, the Dice class contains details like what properties a Dice has (e.g. number of sides) and how it behaves (e.g. it can be rolled). The great advantage of having the Dice class is now you can create as many Dice object instances as you want, as shown in the diagram. It saves time from having to write all the same code over and over again. This makes your code more organized and easier to maintain.
[Optional: You could also use this analogy. A blueprint of a house contains the instructions of how to create the house. But the blueprint is not the house itself. The actual house is the object instance, and you can create multiple house object instances from the same blueprint.]
Alright, go ahead and get started on Unit 1, Pathway 1 of the Android Basics in Kotlin course. [You can give them about an hour to work on this]
If you finish early, you can move onto Pathways 2, 3, and 4.
Okay that’s it! In a moment. Work at your own pace. If you get stuck, you can ask me or the other facilitators who will be available. You can ask as well on the next meeting on the next Friday.
If you need help installing Android Studio or getting your app to run on your Android device. Also feel free to ask each other for help and work together to find solutions.You can reach me and our android team leader via messenger and facebook.
We will end the meeting right after this and next Friday on October 8, we will be having a follow-up session.
Great job everyone for attending the opening!
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)]
Stay tuned for our next session –
Please RSVP for the next event which is the Android Study Jams – Week 2 (The second Friday, same time) [It is a weekly follow-up session, no worry guys let’s just enjoy the rest of the study jams activity. So see you every Friday and don’t forget to RSVP].
Thank you for coming and see you soon.
If you liked creating your first Android apps and want to continue learning more on your own, here are some resources.
First, you can continue learning on your own with the Android Basics in Kotlin course. At the moment, Units 1-3 are available with more being released as they become available.
In the meantime, 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!