Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Thriving in Android Development Using Kotlin
  • Toc
  • feedback
Thriving in Android Development Using Kotlin

Thriving in Android Development Using Kotlin

By : Gema Socorro Rodríguez
4.5 (6)
close
Thriving in Android Development Using Kotlin

Thriving in Android Development Using Kotlin

4.5 (6)
By: Gema Socorro Rodríguez

Overview of this book

With resources on Android and Kotlin abound, it’s difficult to find content that focuses on resolving common challenges faced by app developers. This book by Gema Socorro Rodríguez – a Google Developer Expert for Android with over 15 years of experience and a proven track record as an effective instructor – is designed to bridge the gap between theory and real-world application. It equips you with the skills to tackle everyday problems in Android development through hands-on projects. Under Gema's expert guidance, you’ll build three sophisticated Android projects. You'll start your development journey by building a WhatsApp-like application, learning how to process asynchronous messages reactively, render them using Jetpack Compose, and advance to creating and uploading a backup of these messages. Next, you’ll channel your creativity into Packtagram, an Instagram-inspired app that offers advanced photo-editing capabilities using the latest CameraX libraries. Your final project will be a Netflix-style app, integrating video playback functionality with ExoPlayer for both foreground and background operations, and implementing device casting features. By the end of this book, you'll have crafted three fully functional, multi-platform projects and gained the confidence to solve the most common challenges in Android development.
Table of Contents (15 chapters)
close
Free Chapter
1
Part 1:Creating WhatsPackt, a Messaging App
5
Part 2:Creating Packtagram, a Photo Media App
9
Part 3:Creating Packtflix, a Video Media App

Handling synchronization and errors

To make the chat messages functionality complete, we still have some issues we have to take into account: getting historical messages and receiver information and handling possible errors. We will go through them in this section.

Obtaining chat screen initialization data

Apart from the messages that we are going to be receiving or sending via the data source, we still need to get some additional information. This includes the following:

  • Messages that have been sent and received before the WebSocket was connected (not all of them, though, because the conversation could have many messages, and it would take a long time to gather/load all of the information; instead we should prioritize fetching a certain number of the most recent messages)
  • Receiver information, such as their name or avatar URL

There are several options to solve this – for example, we could have a different type of message with all this information when...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete