Problem: After upgrading Android Studio from “Ladybug” to “Otter” I started getting the following error message when I run my app on my emulated test device: First, I ran the AGP Upgrade Assistant, which updated 2 files: And then, applied a “Run Configuration” Fix: Additional things to try if above suggestions weren’t sufficient to fix […]
Android emulator shell list fails: Permission Denied in app directory
Today I learned I should include the app package name after shell in my ADB command, if for example I want to list files under the “subdirectory/media” directory of an app, like so: adb -s emulator-5556 shell run-as com.domain.my.app ls -al /data/user/0/com.domain.my.app/subdirectory/media First try’s command below failed with a Permission Denied error message: adb -s […]
Android: Broadcast sent, receiver registered, but receiver doesn’t receive broadcast
I should blog more often about things I learn about. In a native Android app written in Kotlin, I have a LifecycleService class with below code to send a broadcast: Based on the logcat, the broadcast is being sent. However, below BroadcastReceiver in an Activity doesn’t receive the broadcast, even while it is visible: The […]
Fountain pen inks & papers least sensitive to hand cream or oil
I have been using fountain pens these days to reduce the pressure on my hand, as I hand-write quite frequently, both for work (for problem solving and work journaling) and for personal (journaling, planning, common-placing, etc.). But as someone who needs to apply moisturize the hands often due to skin issues, the lotion, cream, or […]
XCEL Driving School review & rates
After sorting things out, I finally enrolled myself to a PDC (practical driving course) at XCEL Driving School. I chose to take the PDC at XCEL Driving School in Makati City because the location is accessible from my place, the branch representative Ms. Alma is easy to communicate with, and I already trust them because […]
POI Physical Therapy for Degenerative Disc Disease: Review, Sessions, Costs at Philippine Orthopedic Institute Makati
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, Japan, etc.
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.