Bram YehQuick Note: Java/Kotlin Interop on Methods Returning Nullable TypesBecause of Kotlin’s intrinsic support for nullable types, it is commonplace for Kotlin methods to return nullable types. Conversely, in…1 min read·Dec 19, 2023----
Bram YehString Construction in Kotlin - String Templates vs. StringBuilder and buildStringString templates, joinToString(), and buildString provide powerful and idiomatic approaches for string construction in Kotlin. By utilizing…2 min read·Nov 4, 2023----
Bram YehQuick Note — BLUETOOTH_SCAN with neverForLocationAndroid introduced the manifest check that they will not be using BLE for location purposes1 min read·Nov 3, 2023----
Bram YehinCoinmonksAndroid Advanced debugging, Get the machine code and tracing instructionsAndroid is a system that allows developers to write code for the virtual machine without knowing the actual machine code. The compiler can…8 min read·Apr 30, 2023----
Bram YehXcode Error Building for iOS Simulator because of Architecture arm64The Apple M1 is an ARM-based chip. Because M1’s architecture is different from the previous Intel x86 one, Resetta 2 permits many…2 min read·Oct 15, 2022----
Bram YehCustom WebView Class Won’t Display Virtual Keyboard After KotlinizedThis solution was found by my colledges, Ray and Cloud. Thanks for the investigation.2 min read·May 11, 2022----
Bram YehFlow’s asLiveData() with CoroutineContext parameterAnother question from my colleague: we use Flow inside ViewModel and convert to LiveData which Fragment observes. When we should set the…3 min read·Nov 20, 2021--2--2
Bram YehFragment’s init and onCreateA question from my colleague: if we want to initialize a mutable list as the fragment’s variable, should we do it directly in the…2 min read·Oct 14, 2021----
Bram YehAbout Target SDK 30, Storage Permissions, and requestLegacyExternalStorageKeep requestLegacyExternalStorage=true even though it will be ignored on Android 113 min read·May 23, 2021----
Bram YehFix ViewPager2 ‘s Memory Leak by Lifecycle-Aware ComponentThere is a common memory-leak issue of ViewPager2, to prevent this we can use viewLifeCycleOwner when creating the FragmentStateAdapter1 min read·Jan 4, 2021--1--1