My orthopedic doctor recently diagnosed me with Degenerative Disc Disease (DDD) affecting my lower back, specifically the L1-L5 vertebrae, and referred me to physical therapy at the Philippine Orthopedic Institute (POI) in Makati City, located on Dela Rosa Street. It’s a convenient location as it’s close to Makati Medical Center. The intense pain in my […]
Renew BDO debit card – requirements, cost, and experience at Southgate Mall EDSA Branch
Renewing 1 expiring and 1 expired BDO debit card was easier and quicker than anticipated. I was even able to update one of the accounts’ civil status and name despite being from a different branch of account. I was running errands near Alphaland Southgate Mall EDSA, Makati, so I thought that I might as well […]
Run command automatically after updating a file on Mac
I get a kick out of automating things! Especially those seemingly easy extra steps that we do numerous times a day, everyday. There’s this configuration file that I frequently have to adb push into my test Android devices. And the cycle of editing the file, saving it, and then going to the terminal to run […]
KoleilYutong.. what? And other cryptic credit card charges from South Korea
I’ve recently been to South Korea and had a great time. Learning how to read Hangeul helped a lot, even though I don’t know the meaning of most things that I read! One of the things I liked about traveling to South Korea was that many establishments accepted credit card for payment. When traveling abroad, […]
Make a RecyclerView expand its height when new item is added //Android Dev Diary
It seems that simply using android:layout_height=”wrap_content” on your RecyclerView won’t make its height automatically expand when new items are added in it.
How to start using view binding //Android Kotlin Dev Diary
First, open your app/build.gradle file Inside the android{} block of app/build.gradle, add the following: buildFeatures { viewBinding = true } Sync project with gradle files. In your activity or fragment, define the following class-wide property:
1 |
private lateinit var binding: <strong>FragmentorActivityNameBinding</strong> |
Replace the FragmentorActivityNameBinding above with the appropriate binding class name. Tip: The binding class name is based on the […]
Disable animations programmatically during instrumented tests // Android Dev Diary
When running an instrumented Android test, or “androidTest”, and you encounter the following error: It means that you need to disable animations for it to successfully run the test. But, it can take a lot of clicks on the emulator/device screen to get to the developer settings to turn off animations! So, for a quicker […]
Exception: No signature of method android() is applicable for argument types, Build Gradle // Dev Diary
Today I wanted to make a data class a Parcelable so that I could pass it as an argument in Navigation component. Parcelables, though better in performance than Serializables, take more time to implement! To help us out, there’s a “kotlin-parcelize” plugin that can generate the boilerplate code for us. There were issues though. After […]
Two-way data binding with StateFlow & BindingAdapters //Dev Diary
I created BindingAdapters for an EditText like so: My XML layout element looks like this: And in my ViewModel, the inputAmount is set up this way:
Fix coroutine error: Cannot access database on the main thread // Android Dev Diary
As I was running a test for a ViewModel function, I encountered the following error: […] Main Thread @coroutine java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time. I think it may be caused by the viewModelScope from viewModelScope.launch {} being used by […]