Mô tả

Lifecycles are foundational topic in Android because key Android components like Activities, Fragments, ViewModels, etc. all have their unique Lifecycles.

Unfortunately, Android Lifecycles can be complex and intricate, so they can present a challenge even to the most experienced Android developers. Improper use of Android Lifecycles can result in tricky bugs that take a long time to find and fix. No wonder Android Lifecycles is a hot topic during Android job interviews.

In this comprehensive course, we'll deep-dive into Android Lifecycles, equipping you with the knowledge and skills to take complete control over your application's behavior. From foundational concepts to advanced strategies, we cover everything you need to navigate the Lifecycle landscape confidently.

You will learn:

  1. What Android Lifecycles are and why you need them.

  2. The Lifecycles of the core Android components:

    • Process Lifecycle

    • Application Lifecycle

    • Activity Lifecycle

    • Fragment Lifecycle

    • ViewModel Lifecycle

  3. Strategies for handling Configuration Changes and Process Death.

  4. Best practices for efficient Lifecycle management.

  5. Clever hacks and ad hoc solutions for unique Lifecycle-related challenges.

All the demonstrations will be available in an open-source, real Android application.

This course will help you understand and master Android Lifecycles, preparing you to deal with real-world challenges and ace job interviews. Join me on this journey into the complex and interesting world of Android lifecycles!

Bạn sẽ học được gì

Understand why Android Lifecycles exist and how you should use them

Master the lifecycles of Application, Activity, Fragment, etc.

Handle configuration changes and process death

Hack Android lifecycles to implement non-standard requirements

Answer questions about Android lifecycles during job interviews

Yêu cầu

  • Minimal Android development experience

Nội dung khoá học

8 sections

Introduction

1 lectures
Introduction
05:01

Application Lifecycle

8 lectures
Application
01:55
Review System
01:43
Process
03:14
Process Lifecycle
09:16
Application Class
07:25
Global Objects
12:46
Application.onCreate()
08:39
Application Lifecycle Summary
04:39

Activity Lifecycle

11 lectures
Activity Lifecycle
09:28
Activity as Context
07:33
Activity onCreate() and onDestroy()
11:18
Activities Back Stack
06:18
Activity onStart() and onStop()
12:41
Activity onResume() and onPause()
08:41
Overlapping vs Non-Overlapping Lifecycle States
07:19
Multi-Resume
14:06
Memory Leaks
16:11
Activity Lifecycle Callbacks
04:17
Activity Lifecycle Summary
04:22

Fragment Lifecycle

14 lectures
Fragment Lifecycle
07:17
Fragment Code Review
04:27
Fragment onCreateView() and onDestroyView()
05:37
Fragment onViewCreated()
06:52
Fragment onCreate(), onStart() and onResume()
05:28
Fragment Lifecycle Demonstration
09:34
Fragments Back Stack
08:34
Activity - Fragment Lifecycle Coupling
05:30
Fragment View Lifecycle
24:06
Fragment View Recreation Optimization
14:00
Fragment onAttach() and onDetach()
02:02
Fragment Lifecycle Callbacks
05:06
Fragment Navigation Libraries
04:20
Fragment Lifecycle Summary
10:02

Configuration Changes

11 lectures
Configuration Changes
02:15
Configuration Changes Demonstration
06:29
Configuration Changes Mechanics
03:21
Fixing Background Detection Code
10:47
FragmentManager During Configuration Changes
12:30
Views During Configuration Changes
06:34
Custom State During Configuration Changes
16:25
Custom State During Configuration Changes - Part 2
15:49
Manual Handling of Configuration Changes
21:20
Deprecated APIs
03:50
Configuration Changes Summary
07:18

ViewModel Lifecycle

6 lectures
ViewModel Lifecycle
03:12
ViewModel Demonstraion
10:06
Observable ViewModel
04:34
LiveData
07:58
ViewModel onCleared()
10:17
ViewModel Lifecycle Summary
04:10

Save & Restore (Process Death)

14 lectures
Save & Restore (Process Death)
06:02
Memory Management in Android
06:42
Testing Save & Restore Scenario
01:45
Background Process Limit
08:03
Stopping Cached Process
03:59
Killing a Process From ADB
07:58
Save & Restore in Activities
12:49
Save & Restore in Fragments
06:06
Save & Restore in ViewModel
10:33
Save & Restore in Global Objects
04:28
How to Support Save & Restore in Global Objects
18:02
Save & Restore and Mutable Static State
02:05
Save & Restore vs Configuration Changes
07:23
Save & Restore (Process Death) Summary
04:46

Course Summary

1 lectures
Course Summary
03:26

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.