Tagged articles
11 articles
Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 5, 2023 · Mobile Development

Understanding Android ViewModel: State Preservation, onRetainNonConfigurationInstance, and Implementation Details

This article explains how Android ViewModel preserves UI state across configuration changes, the role of SavedStateHandle and onRetainNonConfigurationInstance, the internal mechanisms involving ComponentActivity and ViewModelStore, and provides practical guidance on using factories, CreationExtras, and Hilt for custom ViewModel implementations.

AndroidJetpackLifecycle
0 likes · 22 min read
Understanding Android ViewModel: State Preservation, onRetainNonConfigurationInstance, and Implementation Details
Sohu Tech Products
Sohu Tech Products
Feb 22, 2023 · Mobile Development

Introducing CameraViewfinder: Simplify Resizable Camera Preview on Android

This article explains how Android developers can use the new Jetpack CameraViewfinder component to implement reliable, resizable camera previews across diverse device form factors—including foldables and multi‑window modes—by adding the library, configuring layout XML, and handling surface requests with concise Kotlin code examples.

AndroidCamera2CameraViewfinder
0 likes · 7 min read
Introducing CameraViewfinder: Simplify Resizable Camera Preview on Android
Sohu Tech Products
Sohu Tech Products
Mar 23, 2022 · Mobile Development

A Comprehensive Guide to Android Jetpack and ViewBinding: Architecture, Components, and Practical Implementation

This article introduces Android Jetpack, explains its component categories, demonstrates the migration from findViewById to ViewBinding with step‑by‑step code examples for activities, fragments, dialogs, RecyclerView adapters, custom ViewGroups, and includes optimization patterns using generics and Kotlin delegates, while also revealing the underlying code‑generation process.

AndroidArchitecture ComponentsJetpack
0 likes · 14 min read
A Comprehensive Guide to Android Jetpack and ViewBinding: Architecture, Components, and Practical Implementation
Sohu Tech Products
Sohu Tech Products
Feb 10, 2021 · Mobile Development

Understanding Android Jetpack Lifecycle: Principles, Usage, and Source Code Analysis

This article introduces Android Jetpack and its Architecture Components, focuses on the Lifecycle library, demonstrates how to integrate it into activities and MVP architectures, explains the underlying source code including ReportFragment and LifecycleRegistry, and provides practical code examples for effective lifecycle management.

Architecture ComponentsJetpackLifecycle
0 likes · 32 min read
Understanding Android Jetpack Lifecycle: Principles, Usage, and Source Code Analysis
Ctrip Technology
Ctrip Technology
Dec 3, 2020 · Mobile Development

Applying Kotlin Coroutines and Jetpack MVVM in Ctrip Flight App: Architecture, Implementation, and Production Challenges

This article explains how Ctrip's flight Android app refactored its home page using Kotlin coroutines, Jetpack AAC components, and MVVM architecture, detailing the technical and business background, code patterns, production issues, and lessons learned for large‑scale mobile development.

AndroidChannelCoroutines
0 likes · 20 min read
Applying Kotlin Coroutines and Jetpack MVVM in Ctrip Flight App: Architecture, Implementation, and Production Challenges
JD Tech
JD Tech
Jul 3, 2018 · Mobile Development

Understanding Android Jetpack Navigation: Setup, Usage, Data Passing, Deep Links, and Source Code Analysis

This article provides a comprehensive guide to Android Jetpack's Navigation component, covering its purpose, setup with Gradle, XML graph configuration, fragment navigation code, data passing methods, deep‑link handling, and an analysis of its underlying source classes such as NavHostFragment and NavController.

AndroidJetpackKotlin
0 likes · 13 min read
Understanding Android Jetpack Navigation: Setup, Usage, Data Passing, Deep Links, and Source Code Analysis