Mastering Android Development with Kotlin

Master Android development using a variety of Kotlin features
Preview in Mapt

Mastering Android Development with Kotlin

Miloš Vasić

Master Android development using a variety of Kotlin features
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $35.99
Save 72%
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
$10.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering Android Development with Kotlin Book Cover
Mastering Android Development with Kotlin
$ 35.99
$ 10.00
Full Stack Development with JHipster Book Cover
Full Stack Development with JHipster
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $51.98
Add to Cart

Book Details

ISBN 139781788473699
Paperback378 pages

Book Description

Kotlin is a programming language intended to be a better Java, and it's designed to be usable and readable across large teams with different levels of knowledge. As a language, it helps developers build amazing Android applications in an easy and effective way.

This book begins by giving you a strong grasp of Kotlin’s features in the context of Android development and its APIs. Moving on, you’ll take steps toward building stunning applications for Android. The book will show you how to set up the environment, and the difficulty level will grow steadily with the applications covered in the upcoming chapters.

Later on, the book will introduce you to the Android Studio IDE, which plays an integral role in Android development. We’ll use Kotlin’s basic programming concepts such as functions, lambdas, properties, object-oriented code, safety aspects, type parameterization, testing, and concurrency, which will guide you through writing Kotlin code into production. We’ll also show you how to integrate Kotlin into any existing Android project.

Table of Contents

Chapter 1: Starting with Android
Why Kotlin?
Kotlin for Android - it's official
Downloading and configuring Android Studio
Setting up Android emulators
Android Debug Bridge
Other important tools
Initializing a Git repository
Creating an Android project
Setting up Gradle
Explaining directory structure
Defining build types and flavors
Additional libraries
Getting familiar with Android Manifest
Main Application class
Your first screen
Summary
Chapter 2: Building and Running
Running your first Android application
Meet the Logcat
Using the Gradle build tool
Debug your application
Summary
Chapter 3: Screens
Analyzing the mockup plan
Android layouts
Understanding Android Context
Understanding fragments
Creating View Pager
Making animations with transitions
Dialog fragments
Notifications
Other important UI components
Summary
Chapter 4: Connecting Screen Flow
Creating an application bar
Using the navigation drawer
Connecting activities
Looking deeper into Android Intents
Passing information between activities and fragments
Summary
Chapter 5: Look and Feel
Themes in the Android Framework
Styles in Android
Applying coloring
Make your buttons look pretty
Setting animations
Summary
Chapter 6: Permissions
Permissions from Android Manifest
Requesting permissions
Doing it the Kotlin way
Summary
Chapter 7: Working with Databases
Introduction to SQLite
Describing our database
CRUD operations
Summary
Chapter 8: Android Preferences
What are Android preferences?
How can you use them?
Defining your own preferences manager
Summary
Chapter 9: Concurrency in Android
Introduction to Android concurrency
Handlers and threads
Understanding Android Looper
Summary
Chapter 10: Android Services
Service categorization
Android service basics
Defining the main application service
Defining the intent service
Summary
Chapter 11: Messaging
Understanding Android broadcasts
Creating your own broadcast messages
Using on boot and on shutdown broadcasts
Listening for network events
Summary
Chapter 12: Backend and API
Identifying entities used
Working with data classes
Connect data models to a database
Introduction to Retrofit
Introduction to Gson with Kotson library
What else is available?
Executing our first API call
Content providers
Android adapters
Content loaders
Data binding
Using lists
Using grids
Implementing drag and drop
Summary
Chapter 13: Tuning Up for High Performance
Optimizing layouts
Optimizing battery life
Keeping your application responsive
Summary
Chapter 14: Testing
Adding dependencies
Updating folder structure
Writing your first test
Using test suites
Running tests
Summary
Chapter 15: Migration to Kotlin
Preparing the migration
Danger signs
Updating dependencies
Converting classes
Refactoring and cleanup
Summary
Chapter 16: Deploying Your Application
Preparing for deployment
Code obfuscation
Signing your application
Publishing to Google Play
Summary

What You Will Learn

  • Understand the basics of Android development with Kotlin
  • Get to know the key concepts in Android development
  • See how to create modern mobile applications for the Android platform
  • Adjust your application’s look and feel
  • Know how to persist and share application database
  • Work with Services and other concurrency mechanisms
  • Write effective tests
  • Migrate an existing Java-based project to Kotlin

Authors

Table of Contents

Chapter 1: Starting with Android
Why Kotlin?
Kotlin for Android - it's official
Downloading and configuring Android Studio
Setting up Android emulators
Android Debug Bridge
Other important tools
Initializing a Git repository
Creating an Android project
Setting up Gradle
Explaining directory structure
Defining build types and flavors
Additional libraries
Getting familiar with Android Manifest
Main Application class
Your first screen
Summary
Chapter 2: Building and Running
Running your first Android application
Meet the Logcat
Using the Gradle build tool
Debug your application
Summary
Chapter 3: Screens
Analyzing the mockup plan
Android layouts
Understanding Android Context
Understanding fragments
Creating View Pager
Making animations with transitions
Dialog fragments
Notifications
Other important UI components
Summary
Chapter 4: Connecting Screen Flow
Creating an application bar
Using the navigation drawer
Connecting activities
Looking deeper into Android Intents
Passing information between activities and fragments
Summary
Chapter 5: Look and Feel
Themes in the Android Framework
Styles in Android
Applying coloring
Make your buttons look pretty
Setting animations
Summary
Chapter 6: Permissions
Permissions from Android Manifest
Requesting permissions
Doing it the Kotlin way
Summary
Chapter 7: Working with Databases
Introduction to SQLite
Describing our database
CRUD operations
Summary
Chapter 8: Android Preferences
What are Android preferences?
How can you use them?
Defining your own preferences manager
Summary
Chapter 9: Concurrency in Android
Introduction to Android concurrency
Handlers and threads
Understanding Android Looper
Summary
Chapter 10: Android Services
Service categorization
Android service basics
Defining the main application service
Defining the intent service
Summary
Chapter 11: Messaging
Understanding Android broadcasts
Creating your own broadcast messages
Using on boot and on shutdown broadcasts
Listening for network events
Summary
Chapter 12: Backend and API
Identifying entities used
Working with data classes
Connect data models to a database
Introduction to Retrofit
Introduction to Gson with Kotson library
What else is available?
Executing our first API call
Content providers
Android adapters
Content loaders
Data binding
Using lists
Using grids
Implementing drag and drop
Summary
Chapter 13: Tuning Up for High Performance
Optimizing layouts
Optimizing battery life
Keeping your application responsive
Summary
Chapter 14: Testing
Adding dependencies
Updating folder structure
Writing your first test
Using test suites
Running tests
Summary
Chapter 15: Migration to Kotlin
Preparing the migration
Danger signs
Updating dependencies
Converting classes
Refactoring and cleanup
Summary
Chapter 16: Deploying Your Application
Preparing for deployment
Code obfuscation
Signing your application
Publishing to Google Play
Summary

Book Details

ISBN 139781788473699
Paperback378 pages
Read More

Read More Reviews

Recommended for You

Kotlin Programming By Example Book Cover
Kotlin Programming By Example
$ 39.99
$ 10.00
Mastering Swift 4 - Fourth Edition Book Cover
Mastering Swift 4 - Fourth Edition
$ 35.99
$ 10.00
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 10.00
Full Stack Development with JHipster Book Cover
Full Stack Development with JHipster
$ 35.99
$ 10.00
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
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 10.00