Home Page Icon
Home Page
Table of Contents for
Contributors
Close
Contributors
by Natarajan Raman, Eunice Obugyei
Learning Kotlin by building Android Applications
Title Page
Copyright and Credits
Learning Kotlin by Building Android Applications
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Setting Up for Android Development
Why develop Android with Kotlin?
Concise
Say bye bye to the NullPointerException
Java interoperability
Setting up your environment
Java
Installing the JDK
Android Studio
Installing Android Studio
Getting Android Studio ready
Creating your first Android project
Choosing an SDK
Building your project
Gradle
Parts of an Android project
Running your app
The Android emulator
Creating an Android emulator
Running from an emulator
Running on an actual device
Summary
Configuring Your Environment for Kotlin
Installing the Kotlin plugin
Making our project Kotlin-ready
Kotlin alongside Java?
Kotlin to Java?
Summary
Data Types, Variables, and Constants
The user interface
Building our game UI
Basic types
Variables and constants
Properties
Summary
Classes and Objects
Structure of a class
Constructors
Data classes
Objects
Summary
Type Checks and Null Safety
Null safety
Nullable and non-nullable types
Safe call operator
The Elvis operator
The !! operator
Type checks
Cast operator
Summary
Functions and Lambdas
Functions
Parameters
Higher–order functions and lambdas
Lambda expressions
Implementing a game status check
Summary
Developing Your Location-Based Alarm
Creating a project
Generation of a Google Maps API key
Running the app
Understanding the code
Customizing the code
Finding the Lat and Lng of a place
The XML layout
Developing a screen for user input
The AndroidManifest file
Build.gradle
Summary
Working with Google's Location Services
Integrating shared preferences
Adding permissions
Integration of the location API
Classes and variables
The Google API client
Matching the location
Summary
Connecting the Outside World – Networking
Network connectivity
Manifest permissions
Volley library
Sync adapter
Third-party libraries
Picasso
User interface – XML
build.gradle
Kotlin code
Manifest permissions
Glide
build.gradle 
Kotlin code
Summary
Developing a Simple To-Do List App
Creating the project
Building your UI
Using the Android Studio layout editor
Adding functionality to the user interface 
Adding a new task
Displaying data in the ListView
Updating/deleting a Todo item
Adding a menu
Summary
Persisting with Databases
Introduction to databases
Relational databases
Using SQLite
Inserting data into the database
Retrieving data from the database
Updating a task
Deleting a task
ORM libraries
Retrieving data from the database
Inserting data into the database
Updating a task
Deleting a task
Non-relational databases
Summary
Setting Reminders for Tasks
AlarmManager
Creating the alarm
Starting the reminder dialog
BroadcastReceiver
Sending broadcasts
Creating a broadcast receiver
Creating the AlarmService
Creating an IntentService
Firebase Cloud Messaging
Integrating FCM
Summary
Testing and Continuous Integration
Testing
Importance of testing
Android Testing Support Library
Model-View-Presenter architecture
Test-Driven Development
Functional versus non-functional testing
Notes app
Test dependencies
Your first test
Crashlytics
Connect
Stages of testing
Alpha testing
Beta testing
Setting up for beta testing
Creating the beta test track
The opt-in URL
Continuous integration
Definition
Tools
Installing fastlane
Summary
Making Your App Available to the World
Key store generation
Key store generation through Android Studio
Auto signing the APK through Android Studio
Build types and flavors
Key store generation through the command line
Publishing the app in Google Play Store
App release section
Store listing section
Content rating section
Pricing and distribution section
Publishing the app in Amazon Appstore
General information
Availability & Pricing section
Description section
Images & Multimedia section
Content Rating section
Binary File(s) section
Summary
Building an App Using the Google Faces API
Introduction to Mobile Vision
Faces API concepts
Getting started – detecting faces
Creating the FunyFace project
Loading the image
Creating a Paint instance
Creating a canvas
Creating the face detector
Detecting the faces
Drawing rectangles on the faces
Results
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
PacktPub.com
Next
Next Chapter
About the authors
Contributors
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset