Kotlin for Android & Java Developers: Clean Code on Android [Video]

Preview in Mapt

Kotlin for Android & Java Developers: Clean Code on Android [Video]

Peter Sommerhoff

Become a professional Kotlin developer and write cleaner code in your Android apps than in Java, avoid boilerplate code
Mapt Subscription
FREE
$29.99/m after trial
Video
$10.01
RRP $191.99
Save 94%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.01
$29.99 p/m after trial
RRP $191.99
Subscription
Video
Start 30 Day Trial

Frequently bought together


Kotlin for Android & Java Developers: Clean Code on Android [Video] Book Cover
Kotlin for Android & Java Developers: Clean Code on Android [Video]
$ 191.99
$ 10.01
Mastering Kotlin for Android Development [Video] Book Cover
Mastering Kotlin for Android Development [Video]
$ 124.99
$ 10.00
Buy 2 for $20.01
Save $296.97
Add to Cart

Video Details

ISBN 139781788994811
Course Length9 hours and 15 minutes

Video Description

Kotlin is a modern language for the JVM, and the only officially supported language on Android besides Java. It's developed by JetBrains, the makers of IntelliJ on which Android Studio is based. Since Google's announcement to officially support Kotlin in 2017, interest in the language has radically increased -- and with it the number of tutorials, courses, books, and also job offers for Kotlin. It's a great time to dive into this modern language and get ahead of other Android developers! With its modern language design that incorporates industry best practices, Kotlin allows you to write highly expressive, understandable and safe code -- while being 100% interoperable with Java. You can use any Java classes and methods from Kotlin and the other way around. This course shows you what language features I mean, and how you can apply them in order to write world-class code. Learn to use Kotlin the right way to actually improve your Android app code write null-safe, concise, and readable code in Kotlin using functional and object-oriented concepts workaround unnecessary boilerplate code when using Android APIs (e.g. SQLite) using higher-order extension functions, use Android Studio effectively to speed up your development workflow, get your questions answered along the way should you ever get stuck.

Style and Approach

After this course, you'll be able to confidently use Kotlin for any kind of project -- but we'll of course apply what we learn to Android app development in this course.

Table of Contents

Introduction
What You'll Learn in this Course
Make the Most of this Course!
Who's Using Kotlin?
Get Ready
Introduction
Install the Java JDK 8
Install Android Studio
Set Up a Project in Android Studio
Recap
Kotlin Basics
Introduction
Variables and Data Types
Null Safety in Kotlin
Conditionals: "if" Expressions
Conditionals: "when" Expressions
Collections
"for" Loops
"while" Loops
Functions
Get Ready for Serious Kotlin Coding (Set up IntelliJ IDEA)
Create a main() Function
Named Arguments & Default Parameter Values
Exceptions
Why No Checked Exceptions?
Recap
Functional Programming
Introduction
What is Functional Programming?
Functional Programming II
Lambdas & Higher-Order Functions
Use map() and flatMap()
Use take () and drop()
Use zip ()
Chain Functions Together
Lazy Sequences
Case Study: Performance of Lazy Sequences
Code Along: Infinite Lazy Sequence of All Prime Numbers
Use "let" Operator for Scoping and Nullables
Use "with" for Many Calls on the Same Object
Use "use" for Closeable (like try-with-resources)
Inline Functions
Recap
Object-Orientation in Kotlin
Introduction
Classes
Properties with Getters & Setters
Primary and Secondary Constructors
Methods
Extension Functions
Data Classes
Enums
Inheritance
Code Along: Inheritance Example
Abstract Classes
Interfaces
Overriding Rules
Smart Casts
Visibilities
Companion Objects for "Static" Members
Object Declarations as Singletons
Packages and Imports
Generic Classes
Generic Functions
Covariance
Covariance: Java vs Kotlin
Covariance vs. Contra variance: "out" and "in"
Recap
Kotlin for Android – Fundamentals
Introduction
Create the App Project
Understand the Android Versions
Create a CardView Layout and Add UI Elements
Use the "Kotlin Android Extensions"
Challenge Solution
Kotlin for Android -- Implement a RecyclerView
Introduction
What is a RecyclerView?
Create the Data Class "Habit"
Implement the "HabitsAdapter" - Part I
Implement the "HabitsAdapter" - Part II
Implement the "HabitsAdapter" - Part III
Kotlin for Android -- Let Users Create Habits
Introduction
Add a Menu
Add a Second Activity
Use Intents to Switch Activities
Challenge Solution
Let Users Choose an Image
Get the Selected Image Back (onActivityResult)
Show Error Messages to the User
Code Along: An Extension Function for "EditText"
Kotlin for Android -- Use SQLite the Kotlin Way!
Introduction
Introducing SQLite
Define the Contracts
Implement the Database Helper
Store a Habit to SQLite
Implementing Secure Transactions (that support Rollback)
Clean Code: Improving Transactions in Kotlin
Clean Code: Further Improving Transactions and Performance
Store the Habit in "CreateHabitActivity"
Read All Habits from SQLite
Challenge Solution
Challenge Solution
Add Files to the Virtual Device (Excursus)

What You Will Learn

  • Write clean code with Kotlin
  • Avoid ceremony and boilerplate code around Android APIs
  • Use functional programming to write concise, expressive code
  • Create Android apps with Kotlin
  • Write readable SQLite transactions using extension functions in Kotlin
  • Use the Kotlin Android Extensions to avoid findViewById()
  • Create multiple activities, layouts and menus

Authors

Table of Contents

Introduction
What You'll Learn in this Course
Make the Most of this Course!
Who's Using Kotlin?
Get Ready
Introduction
Install the Java JDK 8
Install Android Studio
Set Up a Project in Android Studio
Recap
Kotlin Basics
Introduction
Variables and Data Types
Null Safety in Kotlin
Conditionals: "if" Expressions
Conditionals: "when" Expressions
Collections
"for" Loops
"while" Loops
Functions
Get Ready for Serious Kotlin Coding (Set up IntelliJ IDEA)
Create a main() Function
Named Arguments & Default Parameter Values
Exceptions
Why No Checked Exceptions?
Recap
Functional Programming
Introduction
What is Functional Programming?
Functional Programming II
Lambdas & Higher-Order Functions
Use map() and flatMap()
Use take () and drop()
Use zip ()
Chain Functions Together
Lazy Sequences
Case Study: Performance of Lazy Sequences
Code Along: Infinite Lazy Sequence of All Prime Numbers
Use "let" Operator for Scoping and Nullables
Use "with" for Many Calls on the Same Object
Use "use" for Closeable (like try-with-resources)
Inline Functions
Recap
Object-Orientation in Kotlin
Introduction
Classes
Properties with Getters & Setters
Primary and Secondary Constructors
Methods
Extension Functions
Data Classes
Enums
Inheritance
Code Along: Inheritance Example
Abstract Classes
Interfaces
Overriding Rules
Smart Casts
Visibilities
Companion Objects for "Static" Members
Object Declarations as Singletons
Packages and Imports
Generic Classes
Generic Functions
Covariance
Covariance: Java vs Kotlin
Covariance vs. Contra variance: "out" and "in"
Recap
Kotlin for Android – Fundamentals
Introduction
Create the App Project
Understand the Android Versions
Create a CardView Layout and Add UI Elements
Use the "Kotlin Android Extensions"
Challenge Solution
Kotlin for Android -- Implement a RecyclerView
Introduction
What is a RecyclerView?
Create the Data Class "Habit"
Implement the "HabitsAdapter" - Part I
Implement the "HabitsAdapter" - Part II
Implement the "HabitsAdapter" - Part III
Kotlin for Android -- Let Users Create Habits
Introduction
Add a Menu
Add a Second Activity
Use Intents to Switch Activities
Challenge Solution
Let Users Choose an Image
Get the Selected Image Back (onActivityResult)
Show Error Messages to the User
Code Along: An Extension Function for "EditText"
Kotlin for Android -- Use SQLite the Kotlin Way!
Introduction
Introducing SQLite
Define the Contracts
Implement the Database Helper
Store a Habit to SQLite
Implementing Secure Transactions (that support Rollback)
Clean Code: Improving Transactions in Kotlin
Clean Code: Further Improving Transactions and Performance
Store the Habit in "CreateHabitActivity"
Read All Habits from SQLite
Challenge Solution
Challenge Solution
Add Files to the Virtual Device (Excursus)

Video Details

ISBN 139781788994811
Course Length9 hours and 15 minutes
Read More

Read More Reviews

Recommended for You

Mastering Kotlin for Android Development [Video] Book Cover
Mastering Kotlin for Android Development [Video]
$ 124.99
$ 10.00
Full Stack Angular for Java Developers Book Cover
Full Stack Angular for Java Developers
$ 39.99
$ 10.00
DevOps in Finance Book Cover
DevOps in Finance
$ 35.99
$ 10.00
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 10.00
Internet of Things for Architects Book Cover
Internet of Things for Architects
$ 35.99
$ 10.00
C# 7 Test Driven Development Book Cover
C# 7 Test Driven Development
$ 31.99
$ 10.00