1 of 50

Android Study Jams

Android Basics: Sessions 1 & 2

This work is licensed under the Apache 2.0 License

2 of 50

Android Study Jams

Android Basics: Session 1

This work is licensed under the Apache 2.0 License

3 of 50

  • Basic computer literacy

  • Basic math skills

  • Computer & headphones

  • Internet connection

  • (Optional) Android device & USB cable

Prerequisites

This work is licensed under the Apache 2.0 License

4 of 50

1. Why are you here?

2. What are you goals?

3. How do you plan to achieve them?

This work is licensed under the Apache 2.0 License

5 of 50

Who would like to share?

This work is licensed under the Apache 2.0 License

6 of 50

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

This work is licensed under the Apache 2.0 License

7 of 50

Today’s Schedule

TOPIC

TIME

Presentation

12:00 - 12:15

Pathway 1: Introduction to Kotlin

12:15 - 1:15

Break

1:15 - 1:30

Pathway 2: First Android App

1:30 - 3:30

Pathway 3: Build a Basic Layout

3:30 - 4:30

Celebrate

This work is licensed under the Apache 2.0 License

8 of 50

Android Basics

in Kotlin Course

This work is licensed under the Apache 2.0 License

9 of 50

Unit 1: Kotlin Basics

For Android

This work is licensed under the Apache 2.0 License

10 of 50

A Pathway

This work is licensed under the Apache 2.0 License

11 of 50

Take a Quiz

This work is licensed under the Apache 2.0 License

12 of 50

Earn badges!

This work is licensed under the Apache 2.0 License

13 of 50

Developer profile

Carrie Sawyer

This work is licensed under the Apache 2.0 License

14 of 50

Concept Overview

This work is licensed under the Apache 2.0 License

15 of 50

Use Kotlin to start writing Android apps

Kotlin helps developers be more productive

Kotlin Programming Language

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

16 of 50

Write and run Kotlin

code in the browser

Kotlin Playground

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

17 of 50

Official tool to build Android apps

Android Studio

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

18 of 50

Android Emulator

Emulate an Android device on your computer.

Run your app on the emulator

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

19 of 50

The part of your app where

the user interacts with it

User Interface

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

20 of 50

Layouts

Views

Layouts

Aa

Button

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

21 of 50

TextView

ImageView

Button

Hello Android!

Views

Pathway 1

Pathway 2

Pathway 3

This work is licensed under the Apache 2.0 License

22 of 50

Let’s get started

This work is licensed under the Apache 2.0 License

23 of 50

Start here:

g.co/android/basics

This work is licensed under the Apache 2.0 License

24 of 50

This work is licensed under the Apache 2.0 License

25 of 50

Unit 1

This work is licensed under the Apache 2.0 License

26 of 50

Have a Question? Just ask

Go to g.co/android/basics

Start Android Basics in Kotlin Course

Work on Unit 1, Pathway 1

This work is licensed under the Apache 2.0 License

27 of 50

Break

This work is licensed under the Apache 2.0 License

28 of 50

Have a Question? Just ask

Work on Unit 1, Pathways 2 & 3

This work is licensed under the Apache 2.0 License

29 of 50

Welcome back

And congrats!

This work is licensed under the Apache 2.0 License

30 of 50

Share what you’ve

learned with #AndroidStudyJams

This work is licensed under the Apache 2.0 License

31 of 50

Stay tuned for Session 2

This work is licensed under the Apache 2.0 License

32 of 50

Android Study Jams

Android Basics: Session 2

This work is licensed under the Apache 2.0 License

33 of 50

  • Completed Pathways 1 - 3 in Unit 1 of Android Basics in Kotlin course

  • Computer & headphones

  • Android Studio installed

  • Internet connection

  • (Optional) Android device & USB cable

Prerequisites

This work is licensed under the Apache 2.0 License

34 of 50

Recap from last time

What did we learn?

This work is licensed under the Apache 2.0 License

35 of 50

Unit 1

Pathway 4

This work is licensed under the Apache 2.0 License

36 of 50

Earn a new badge!

This work is licensed under the Apache 2.0 License

37 of 50

Today’s Schedule

TOPIC

TIME

Presentation

12:00 - 12:15

Pathway 4: Add a button to an App

12:15 - 1:00

Break

1:00 - 1:15

Pathway 4 (continued)

1:15 - 2:00

Break

2:00 - 2:15

Pathway 4 (continued)

2:15 - 3:00

Celebrate

This work is licensed under the Apache 2.0 License

38 of 50

Concept Overview

This work is licensed under the Apache 2.0 License

39 of 50

An activity provides the window in which the app draws its UI.

Activity

MainActivity

This work is licensed under the Apache 2.0 License

40 of 50

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

This work is licensed under the Apache 2.0 License

41 of 50

This work is licensed under the Apache 2.0 License

42 of 50

Let’s get started

This work is licensed under the Apache 2.0 License

43 of 50

Stuck? Ask for help

Go to g.co/android/basics

Start Android Basics in Kotlin Course

Work on Unit 1, Pathway 4

This work is licensed under the Apache 2.0 License

44 of 50

Break

This work is licensed under the Apache 2.0 License

45 of 50

Stuck? Ask for help

Work on Unit 1, Pathway 4

This work is licensed under the Apache 2.0 License

46 of 50

Welcome back

And congrats!

This work is licensed under the Apache 2.0 License

47 of 50

Let’s Play!

This work is licensed under the Apache 2.0 License

48 of 50

Share what you’ve

learned with #AndroidStudyJams

This work is licensed under the Apache 2.0 License

49 of 50

Learn More

This work is licensed under the Apache 2.0 License

50 of 50

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:

This work is licensed under the Apache 2.0 License