O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modernizing Your Android Applications

Video Description

Port your codebase from Java to Kotlin and enhance the UI of your app using advanced Android Architecture Components

About This Video

  • Modernize your Android application with Kotlin using solid principles and common architecture patterns.
  • Get equipped with the new Jetpack group of libraries including WorkManager, LiveData, ViewModel, and more.
  • Reduce the lines of code and efficiently write your Android application in a modern way.

In Detail

Programming Android apps can be a complex process and lack of knowledge in architecting your app can result in spaghetti code and dead ends. In order to deliver an extendable, maintainable, and testable code base, you have to think about the architecture of your application from the very first stage of your development.

In this course, you’ll take an existing Android application build in Java and modernize it using the Kotlin language, seeing the importance of planning the architecture using SOLID principles and common Android Architecture using the MVP, MVC, and MVVM patterns.

Moving on, you’ll implement Life Cycle Aware Components, use the viewmodel LiveData framework, and perform data management and persistence with the Room persistence solution. You’ll see how Kotlin efficiently accelerates the development by improving the code base. With the advanced Architectural Components, you’ll not only be able to improve the performance but also enhance the UI of your application to a whole new level.

By the end of this course, you’ll have modernized your Android app using all the new features from coding it in Kotlin to implementing Architecture Components to enhancing the UI of your app, which gives you more control on your app and makes it easy to maintain.

All the code and supporting files for this course are available on Github at https://github.com/PacktPublishing/Modernizing-your-Android-Applications

Table of Contents

  1. Chapter 1 : Welcome to the Cool New Android
    1. The Course Overview 00:06:34
    2. Layout Design and Management 00:09:56
    3. Rotations and Recreations 00:13:13
    4. New Layouts 00:20:53
    5. New Lists 00:14:59
  2. Chapter 2 : Measure Performance with Code Profiling
    1. Old Code Profiling 00:06:51
    2. New Code Profiling 00:09:18
    3. Memory Leaks 00:06:03
  3. Chapter 3 : Coddling Kotlin
    1. Converting Java to Kotlin 00:16:51
    2. Extension Functions 00:08:19
    3. Operator Overload 00:06:15
    4. Kotlin Android Extensions 00:06:22
    5. KTX 00:13:04
  4. Chapter 4 : Data Storage and Management with Room DB
    1. Data Persistence the Old Way 00:11:21
    2. Data Persistence the New Way 00:11:09
    3. Inserting Data and Writing Queries 00:04:18
    4. Updating and Deleting Data 00:04:38
  5. Chapter 5 : LifeCycle, ViewModel, and LiveData
    1. Dynamic Data Loading 00:03:42
    2. Handling Lifecycles Callbacks 00:06:51
    3. Responding to State Changes 00:05:33
    4. New Way to Respond to State Changes 00:09:58
    5. Using ViewModel to Restore and Manage Data 00:06:10
    6. Implementing LiveData 00:08:59
  6. Chapter 6 : Implementing Data Binding and Paging Libraries
    1. Exploring Data Binding 00:03:39
    2. Adding Layouts and Binding Expressions 00:07:44
    3. Bind Layout Views to Architecture Components 00:06:18
    4. Implementing Paging Library 00:04:32
    5. UI Components and Considerations 00:05:50
    6. Data Components and Considerations 00:06:37
  7. Chapter 7 : Scheduling Tasks Using WorkManager API
    1. Implementing WorkManager to Schedule Tasks 00:10:04
    2. Running Tasks Under Specific Conditions 00:07:18
    3. Setting Up Unique and Named Work Sequences 00:06:20