Book Image

Kotlin Programming By Example

By : Iyanu Adelekan
Book Image

Kotlin Programming By Example

By: Iyanu Adelekan

Overview of this book

Kotlin greatly reduces the verbosity of source code. With Google having announced their support for Kotlin as a first-class language for writing Android apps, now's the time learn how to create apps from scratch with Kotlin Kotlin Programming By Example takes you through the building blocks of Kotlin, such as functions and classes. You’ll explore various features of Kotlin by building three applications of varying complexity. For a quick start to Android development, we look at building a classic game, Tetris, and elaborate on object-oriented programming in Kotlin. Our next application will be a messenger app, a level up in terms of complexity. Before moving onto the third app, we take a look at data persistent methods, helping us learn about the storage and retrieval of useful applications. Our final app is a place reviewer: a web application that will make use of the Google Maps API and Place Picker. By the end of this book, you will have gained experience of of creating and deploying Android applications using Kotlin.
Table of Contents (12 chapters)

The app manifest

The app manifest is an XML file that is present in every Android application. It is located in the manifests of an application's root folder. The manifest file holds crucial information pertaining to an application on the Android operating system. The information contained in an application's androidManifest.xml must be read by the Android system before an application can be run. Some of the information that must be registered in the app manifest are:

  • The Java package name for the application
  • The activities present in the application
  • Services that are used in the application
  • Intent filters that direct implicit intents to an activity
  • Descriptions of the broadcast receivers used in the application
  • Data pertaining to content providers present in the application
  • The classes that implement the various application components
  • The permissions that are required...