This work is licensed under the Apache 2.0 License
Android Study Jams
Kick-off Sessions
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?
This work is licensed under the Apache 2.0 License
Who would like to share?
This work is licensed under the Apache 2.0 License
Learning Objectives
० Learn the basics of the Kotlin programming language
० Set up Android Studio on your computer
० Build your first Android apps
० Discover resources to continue learning
This work is licensed under the Apache 2.0 License
Why Native?
Why not use a cross platform framework?
This work is licensed under the Apache 2.0 License
Why Kotlin? Why not Java?
This work is licensed under the Apache 2.0 License
What’s in it for you?
This work is licensed under the Apache 2.0 License
What you need to
do
This work is licensed under the Apache 2.0 License
Start here:
g.co/android/studyjams
Collect your first badge!
This work is licensed under the Apache 2.0 License
Where to start?
There are two tracks
New to programming? Have prior programming experience?
Start here
Start here
This work is licensed under the Apache 2.0 License
This work is licensed under the Apache 2.0 License
Android Basics
in Kotlin Course
This work is licensed under the Apache 2.0 License
Unit 1: Kotlin
Basics
For Android
This work is licensed under the Apache 2.0 License
A Pathway
This work is licensed under the Apache 2.0 License
Take a Quiz
This work is licensed under the Apache 2.0 License
Earn badges!
This work is licensed under the Apache 2.0 License
Developer profile
Carrie Sawyer
Photo by Christopher Campbell on Unsplash
This work is licensed under the Apache 2.0 License
Concept Overview
This work is licensed under the Apache 2.0 License
Use Kotlin to start writing Android apps
Kotlin helps developers be more productive
Kotlin Programming Language
This work is licensed under the Apache 2.0 License
Benefits of Kotlin
● Expressive & Concise
● Safer Code
● Interoperable with Java
● Structured Concurrency
This work is licensed under the Apache 2.0 License
Write and run Kotlin
code in the browser
Kotlin Playground
This work is licensed under the Apache 2.0 License
Android Development is Kotlin-First
This work is licensed under the Apache 2.0 License
fun main() {
println("Hello world!")
}
What does this code do?
This work is licensed under the Apache 2.0 License
fun main() {
println("Hello world!")
}
What does this code do?
>>> Hello world!
This work is licensed under the Apache 2.0 License
fun main() {
println("Hello world!")
}
What do you notice about Kotlin?
This work is licensed under the Apache 2.0 License
fun add(a: Int, b: Int): Int {
return a + b
}
fun display(): Unit {
println("Welcome")
}
Parameters and Return Type
This work is licensed under the Apache 2.0 License
mutable variable var counter: Int = 5
val name: String = "Rebecca"
immutable variable
This work is licensed under the Apache 2.0 License
var length = 5
val message = "Welcome"
What’s interesting about these
variable declarations?
This work is licensed under the Apache 2.0 License
if (score < 20) {
println("Low")
} else if (score < 70) {
println("Medium")
} else {
println("High")
}
when (x) {
0 -> endGame()
1 -> moveNext()
2 -> skipTurn()
}
This work is licensed under the Apache 2.0 License
side
// This is the Square class
// definition
class Square(val side: Int)
// This is a Square instance
val s = Square(10)
println(s.side)
Classes
This work is licensed under the Apache 2.0 License
val numList = listOf(1, 2, 3)
val numSet = setOf(4, 5, 6)
val numMap = mapOf("a" to 10, "b" to 20, "b" to 30)
Collections
This work is licensed under the Apache 2.0 License
Official tool to build Android apps
Android Studio
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
This work is licensed under the Apache 2.0 License
The part of your app where
the user interacts with it
User Interface
This work is licensed under the Apache 2.0 License
Aa
Button
Layout
s
Views
Layouts
This work is licensed under the Apache 2.0 License
Hello Android!
Views
TextView ImageView Button
This work is licensed under the Apache 2.0 License
MainActivity
An activity provides the
window in which the app
draws its UI.
Activity
This work is licensed under the Apache 2.0 License
Flowchart
A set of states an activity
can be in during its entire
lifetime
Activity Lifecycle
This work is licensed under the Apache 2.0 License
Let’s get started
This work is licensed under the Apache 2.0 License
Additional Resources
Online curriculum
● Android Basics in Kotlin Course
● Android Kotlin Fundamentals Course
● Udacity Developing Android Apps with
Kotlin Course
● Udacity Advanced Android with Kotlin
Android Resources
● Official Android Developers website
● Android Developers YouTube channel
● Android Developers Twitter
● Android Developers Medium blog
● Android Developers Official blog
● Android Developers Newsletter
● Android Codelabs
● Android GitHub page
Kotlin Language Resources
● Official Kotlin Language website
● Kotlin Learn by Example
● Kotlin Vocabulary series
This work is licensed under the Apache 2.0 License
Share what you’ve
learned with
#AndroidStudyJams
This work is licensed under the Apache 2.0 License
Stay tuned for Session 2

Android study jam iiitv kick-off sesson

  • 1.
    This work islicensed under the Apache 2.0 License Android Study Jams Kick-off Sessions
  • 2.
    This work islicensed under the Apache 2.0 License 1. Why are you here? 2. What are your goals? 3. How do you plan to achieve them?
  • 3.
    This work islicensed under the Apache 2.0 License Who would like to share?
  • 4.
    This work islicensed under the Apache 2.0 License Learning Objectives ० Learn the basics of the Kotlin programming language ० Set up Android Studio on your computer ० Build your first Android apps ० Discover resources to continue learning
  • 5.
    This work islicensed under the Apache 2.0 License Why Native? Why not use a cross platform framework?
  • 6.
    This work islicensed under the Apache 2.0 License Why Kotlin? Why not Java?
  • 7.
    This work islicensed under the Apache 2.0 License What’s in it for you?
  • 8.
    This work islicensed under the Apache 2.0 License What you need to do
  • 9.
    This work islicensed under the Apache 2.0 License Start here: g.co/android/studyjams Collect your first badge!
  • 10.
    This work islicensed under the Apache 2.0 License Where to start? There are two tracks New to programming? Have prior programming experience? Start here Start here This work is licensed under the Apache 2.0 License
  • 11.
    This work islicensed under the Apache 2.0 License Android Basics in Kotlin Course
  • 12.
    This work islicensed under the Apache 2.0 License Unit 1: Kotlin Basics For Android
  • 13.
    This work islicensed under the Apache 2.0 License A Pathway
  • 14.
    This work islicensed under the Apache 2.0 License Take a Quiz
  • 15.
    This work islicensed under the Apache 2.0 License Earn badges!
  • 16.
    This work islicensed under the Apache 2.0 License Developer profile Carrie Sawyer Photo by Christopher Campbell on Unsplash
  • 17.
    This work islicensed under the Apache 2.0 License Concept Overview
  • 18.
    This work islicensed under the Apache 2.0 License Use Kotlin to start writing Android apps Kotlin helps developers be more productive Kotlin Programming Language
  • 19.
    This work islicensed under the Apache 2.0 License Benefits of Kotlin ● Expressive & Concise ● Safer Code ● Interoperable with Java ● Structured Concurrency
  • 20.
    This work islicensed under the Apache 2.0 License Write and run Kotlin code in the browser Kotlin Playground
  • 21.
    This work islicensed under the Apache 2.0 License Android Development is Kotlin-First
  • 22.
    This work islicensed under the Apache 2.0 License fun main() { println("Hello world!") } What does this code do?
  • 23.
    This work islicensed under the Apache 2.0 License fun main() { println("Hello world!") } What does this code do? >>> Hello world!
  • 24.
    This work islicensed under the Apache 2.0 License fun main() { println("Hello world!") } What do you notice about Kotlin?
  • 25.
    This work islicensed under the Apache 2.0 License fun add(a: Int, b: Int): Int { return a + b } fun display(): Unit { println("Welcome") } Parameters and Return Type
  • 26.
    This work islicensed under the Apache 2.0 License mutable variable var counter: Int = 5 val name: String = "Rebecca" immutable variable
  • 27.
    This work islicensed under the Apache 2.0 License var length = 5 val message = "Welcome" What’s interesting about these variable declarations?
  • 28.
    This work islicensed under the Apache 2.0 License if (score < 20) { println("Low") } else if (score < 70) { println("Medium") } else { println("High") } when (x) { 0 -> endGame() 1 -> moveNext() 2 -> skipTurn() }
  • 29.
    This work islicensed under the Apache 2.0 License side // This is the Square class // definition class Square(val side: Int) // This is a Square instance val s = Square(10) println(s.side) Classes
  • 30.
    This work islicensed under the Apache 2.0 License val numList = listOf(1, 2, 3) val numSet = setOf(4, 5, 6) val numMap = mapOf("a" to 10, "b" to 20, "b" to 30) Collections
  • 31.
    This work islicensed under the Apache 2.0 License Official tool to build Android apps Android Studio
  • 32.
    This work islicensed under the Apache 2.0 License Android Emulator Emulate an Android device on your computer. Run your app on the emulator
  • 33.
    This work islicensed under the Apache 2.0 License The part of your app where the user interacts with it User Interface
  • 34.
    This work islicensed under the Apache 2.0 License Aa Button Layout s Views Layouts
  • 35.
    This work islicensed under the Apache 2.0 License Hello Android! Views TextView ImageView Button
  • 36.
    This work islicensed under the Apache 2.0 License MainActivity An activity provides the window in which the app draws its UI. Activity
  • 37.
    This work islicensed under the Apache 2.0 License Flowchart A set of states an activity can be in during its entire lifetime Activity Lifecycle
  • 38.
    This work islicensed under the Apache 2.0 License Let’s get started
  • 39.
    This work islicensed under the Apache 2.0 License Additional Resources Online curriculum ● Android Basics in Kotlin Course ● Android Kotlin Fundamentals Course ● Udacity Developing Android Apps with Kotlin Course ● Udacity Advanced Android with Kotlin Android Resources ● Official Android Developers website ● Android Developers YouTube channel ● Android Developers Twitter ● Android Developers Medium blog ● Android Developers Official blog ● Android Developers Newsletter ● Android Codelabs ● Android GitHub page Kotlin Language Resources ● Official Kotlin Language website ● Kotlin Learn by Example ● Kotlin Vocabulary series
  • 40.
    This work islicensed under the Apache 2.0 License Share what you’ve learned with #AndroidStudyJams
  • 41.
    This work islicensed under the Apache 2.0 License Stay tuned for Session 2