Book Image

Android 9 Development Cookbook - Third Edition

By : Rick Boyer
Book Image

Android 9 Development Cookbook - Third Edition

By: Rick Boyer

Overview of this book

The Android OS has the largest installation base of any operating system in the world. There has never been a better time to learn Android development to write your own applications, or to make your own contributions to the open source community! With this extensively updated cookbook, you'll find solutions for working with the user interfaces, multitouch gestures, location awareness, web services, and device features such as the phone, camera, and accelerometer. You also get useful steps on packaging your app for the Android Market. Each recipe provides a clear solution and sample code you can use in your project from the outset. Whether you are writing your first app or your hundredth, this is a book that you will come back to time and time again, with its many tips and tricks on the rich features of Android Pie.
Table of Contents (24 chapters)
Title Page
Copyright and Credits
Dedication
About Packt
Contributors
Preface
Index

Introduction


Kotlin is probably the biggest change to come to Android development in the last few years, since the change from Eclipse to Android Studio anyway. Kotlin was announced by JetBrains in July 2011 and released as open source in February 2012. Version 1.0 was released in February 2016, with Google announcing first-class support for the language at Google I/O 2017. Android Studio 3.0 came with full support for Kotlin already included (and is the minimum requirement for the following recipes.)

Why Kotlin?

With so many existing languages already available, why did JetBrains create another? According to their own announcements, they were looking for an alternative to Java. Since over 70% of their existing code was already in Java, starting from scratch wasn't an option. They wanted a modern language that was compatible with Java. After comparing the many options and finding nothing that met all their needs, they decided to create Kotlin. One interesting aspect of Kotlin is that it was...