Android Development with Kotlin

Learn how to make Android development much faster using a variety of Kotlin features, from basics to advanced, to write better quality code.
Preview in Mapt

Android Development with Kotlin

Marcin Moskala, Igor Wojda

2 customer reviews
Learn how to make Android development much faster using a variety of Kotlin features, from basics to advanced, to write better quality code.

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
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
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Android Development with Kotlin Book Cover
Android Development with Kotlin
$ 35.99
$ 25.20
Beginning C# 7 Hands-On – Advanced Language Features Book Cover
Beginning C# 7 Hands-On – Advanced Language Features
$ 31.99
$ 22.40
Buy 2 for $35.00
Save $32.98
Add to Cart

Book Details

ISBN 139781787123687
Paperback440 pages

Book Description

Nowadays, improved application development does not just mean building better performing applications. It has become crucial to find improved ways of writing code. Kotlin is a language that helps developers build amazing Android applications easily and effectively. This book discusses Kotlin features in context of Android development. It demonstrates how common examples that are typical for Android development, can be simplified using Kotlin. It also shows all the benefits, improvements and new possibilities provided by this language.

The book is divided in three modules that show the power of Kotlin and teach you how to use it properly. Each module present features in different levels of advancement. The first module covers Kotlin basics. This module will lay a firm foundation for the rest of the chapters so you are able to read and understand most of the Kotlin code. The next module dives deeper into the building blocks of Kotlin, such as functions, classes, and function types. You will learn how Kotlin brings many improvements to the table by improving common Java concepts and decreasing code verbosity. The last module presents features that are not present in Java. You will learn how certain tasks can be achieved in simpler ways thanks to Kotlin.

Through the book, you will learn how to use Kotlin for Android development. You will get to know and understand most important Kotlin features, and how they can be used. You will be ready to start your own adventure with Android development with Kotlin.

Table of Contents

Chapter 1: Beginning Your Kotlin Adventure
Say hello to Kotlin
Awesome Kotlin examples
Dealing with Kotlin code
Kotlin under the hood
More reasons to use Kotlin
Summary
Chapter 2: Laying a Foundation
Variables
Type inference
Strict null safety
Nullability and Java
Casts
Primitive data types
Composite data types
Statements versus expressions
Control flow
Exceptions
Compile-time constants
Delegates
Summary
Chapter 3: Playing with Functions
Basic function declaration and usage
Vararg parameter
Single-expression functions
Tail-recursive functions
Different ways of calling a function
Top-level functions
Top-level functions under the hood
Local functions
Nothing return type
Summary
Chapter 4: Classes and Objects
Classes
Properties
Constructors
Inheritance
Interfaces
Data classes
Operator overloading
Object declaration
Object expression
Companion objects
Enum classes
Infix calls for named methods
Visibility modifiers
Sealed classes
Nested classes
Import aliases
Summary
Chapter 5: Functions as First-Class Citizens
Function types
Anonymous functions
Lambda expressions
Higher-order functions
Combination of named arguments and lambda expressions
The last lambda in an argument convention
Java SAM support in Kotlin
Named Kotlin function types
Underscore for unused variables
Destructuring in lambda expressions
Inline functions
Function references
Summary
Chapter 6: Generics Are Your Friends
Generics
Generic constraints
Variance
Type erasure
Star-projections
Type parameter naming convention
Summary
Chapter 7: Extension Functions and Properties
Extension functions
Extension properties
Member extension functions and properties
Generic extension functions
Function literals with a receiver
Summary
Chapter 8: Delegates
Class delegation
Property delegation
Summary
Chapter 9: Making Your Marvel Gallery Application
Marvel Gallery
Summary

What You Will Learn

  • Run a Kotlin application and understand the integration with Android Studio
  • Incorporate Kotlin into new/existing Android Java based project
  • Learn about Kotlin type system to deal with null safety and immutability
  • Define various types of classes and deal with properties
  • Define collections and transform them in functional way
  • Define extensions, new behaviours to existing libraries and Android framework classes
  • Use generic type variance modifiers to define subtyping relationship between generic types
  • Build a sample application

Authors

Table of Contents

Chapter 1: Beginning Your Kotlin Adventure
Say hello to Kotlin
Awesome Kotlin examples
Dealing with Kotlin code
Kotlin under the hood
More reasons to use Kotlin
Summary
Chapter 2: Laying a Foundation
Variables
Type inference
Strict null safety
Nullability and Java
Casts
Primitive data types
Composite data types
Statements versus expressions
Control flow
Exceptions
Compile-time constants
Delegates
Summary
Chapter 3: Playing with Functions
Basic function declaration and usage
Vararg parameter
Single-expression functions
Tail-recursive functions
Different ways of calling a function
Top-level functions
Top-level functions under the hood
Local functions
Nothing return type
Summary
Chapter 4: Classes and Objects
Classes
Properties
Constructors
Inheritance
Interfaces
Data classes
Operator overloading
Object declaration
Object expression
Companion objects
Enum classes
Infix calls for named methods
Visibility modifiers
Sealed classes
Nested classes
Import aliases
Summary
Chapter 5: Functions as First-Class Citizens
Function types
Anonymous functions
Lambda expressions
Higher-order functions
Combination of named arguments and lambda expressions
The last lambda in an argument convention
Java SAM support in Kotlin
Named Kotlin function types
Underscore for unused variables
Destructuring in lambda expressions
Inline functions
Function references
Summary
Chapter 6: Generics Are Your Friends
Generics
Generic constraints
Variance
Type erasure
Star-projections
Type parameter naming convention
Summary
Chapter 7: Extension Functions and Properties
Extension functions
Extension properties
Member extension functions and properties
Generic extension functions
Function literals with a receiver
Summary
Chapter 8: Delegates
Class delegation
Property delegation
Summary
Chapter 9: Making Your Marvel Gallery Application
Marvel Gallery
Summary

Book Details

ISBN 139781787123687
Paperback440 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Beginning C# 7 Hands-On – Advanced Language Features Book Cover
Beginning C# 7 Hands-On – Advanced Language Features
$ 31.99
$ 22.40
Mastering Swift 4 - Fourth Edition Book Cover
Mastering Swift 4 - Fourth Edition
$ 35.99
$ 25.20
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Learning Material Design Book Cover
Learning Material Design
$ 27.99
$ 19.60
Predictive Analytics with TensorFlow Book Cover
Predictive Analytics with TensorFlow
$ 39.99
$ 28.00
Python: Master the Art of Design Patterns Book Cover
Python: Master the Art of Design Patterns
$ 67.99
$ 47.60