Learning Kotlin by Building Android Applications
Explore the fundamentals of Kotlin by building real-world Android applications
Eunice Adutwumwaa Obugyei
Natarajan Raman
BIRMINGHAM - MUMBAI
Learning Kotlin by Building Android Applications
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Acquisition Editor: Nigel Fernandes
Content Development Editor: Flavian Vaz
Technical Editor: Diksha Wakode
Copy Editor: Safis Editing
Project Coordinator: Devanshi Doshi
Proofreader: Safis Editing
Indexer: Rekha Nair
Graphics: Jason Monteiro
Production Coordinator: Shantanu Zagade
First published: June 2018
Production reference: 1200618
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78847-464-1
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the authors
Eunice Adutwumwaa Obugyei is a software engineer from Accra, Ghana, with over 7 years of experience in Android development. Eunice is currently a senior software engineer at DreamOval Ltd, where she focuses on backend development and native mobile development. She is young, energetic, and always looking for an opportunity to learn and improve the skills in her arsenal. She is passionate about figuring out solutions to problems and finding the simplest way out, and her love for TV series and movies is her escape from the rigors of work life. Feel free to reach out on Twitter or LinkedIn.
Natarajan Raman has close to 15 years of experience in software design and development. He is a Google-certified Nano degree holder in Android development and was invited as a guest by Google for the I/O 2017. His Android App Idea for special children got selected as one of the top 6 ideas out of 80-odd ideas, and was also featured by Google in the Code it possible program. He works for Patterns and is also the managing trustee of Dream India.
I would like to thank my parents, Mr. Raman and Mrs. Alamu Raman, my in-laws, family, friends, employer, colleagues, publishers, and my children of Vasantham (www.vasantham.org) for their support. Special thanks to Ashok and Mr. Suresh Kamath. I dedicate this to my sweet little kid, Master Siddheshwar, and my wife, Ms. Krupa, who make each day of my life beautiful.
About the reviewer
Aanand Shekhar Roy is the author of Kotlin Programming Cookbook. He has worked with many start-ups in the domain of social media management, ad:tech, and FinTech. He is currently working as a senior Android developer at PushCoin and loves to write articles and blogs on Android development. You can reach out to him on Twitter at @aanand_shekhar.
This book is dedicated to all the programmers who are interested in learning about Kotlin and Android development. I would love to thank the Packt team for providing me with all the necessary resources that helped me in the reviewing process.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
"The purpose of education is to make good human beings with skills and expertise. Real education enhances the dignity of a human being and increases his or her self-respect. If only the real sense of education could be realized by each individual and carried forward in every field of human activity,the world will be so much a better place to live in."
Dr. APJ Abdul Kalam
Over 2 billion Android users are active daily, and this reach of data to billions across the globe provides a real opportunity to make a difference. A phone, which was just a device for voice communication until recently, is notjust a phone anymore. Enabling and empowering the next billion users of Android devices will play a significant role in the future.
The purpose of technology is to enable humanity, and the availability of powerful devices provides the opportunity for innovations and can improve the lives of people through technology. Whether it is an app that is built for farmers that provides useful information about the weather or prices of crops, or an app that is built for children with special needs to express themselves, or an app that is built for economically challenged women to run a small home-based business, the opportunities ahead are plenty and very exciting.
This book aims to enable developers who would like to explore the power of Android and experience and enjoy the journey of building Android applications. The chapters have been organized to enable fresh developers to understand and start from the basics, or if you are an experienced developer, to get ahead and explore the power of Kotlin.
Next page