Tag

SharedPreferences

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 8, 2022 · Mobile Development

Revisiting SharedPreferences and Migrating to DataStore in Android

This article analyzes the performance pitfalls of Android's SharedPreferences, explains how its apply() method can still cause ANR, introduces Jetpack DataStore as a modern replacement, and provides detailed migration strategies including code examples, coroutine handling, and bytecode transformation techniques.

AndroidDatastoreKotlin
0 likes · 16 min read
Revisiting SharedPreferences and Migrating to DataStore in Android
Airbnb Technology Team
Airbnb Technology Team
Feb 24, 2022 · Mobile Development

Ensuring Consistency in Airbnb's Android Automated Testing Framework

In the sixth Airbnb Android testing article, the team identifies flaky‑test sources such as nondeterministic sharding, asynchronous execution, view and drawable caching, shared‑preference leaks, time drift, and RecyclerView pre‑fetching, and resolves them by clearing shared state, injecting test‑scoped coroutine scopes, forcing view refreshes, mocking time, clearing drawable caches, disabling pre‑fetching, using synchronous drawables, and wrapping WebViews to block network loads while logging details.

Android TestingAsync HandlingAutomation
0 likes · 13 min read
Ensuring Consistency in Airbnb's Android Automated Testing Framework