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…Dec 19, 2023Dec 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…Nov 4, 2023Nov 4, 2023
Bram YehQuick Note — BLUETOOTH_SCAN with neverForLocationAndroid introduced the manifest check that they will not be using BLE for location purposesNov 3, 2023Nov 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…Apr 30, 2023Apr 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…Oct 15, 2022Oct 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.May 11, 2022May 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…Nov 20, 20212Nov 20, 20212
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…Oct 14, 2021Oct 14, 2021
Bram YehAbout Target SDK 30, Storage Permissions, and requestLegacyExternalStorageKeep requestLegacyExternalStorage=true even though it will be ignored on Android 11May 23, 2021May 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 FragmentStateAdapterJan 4, 20211Jan 4, 20211