The problem is that this line of code is producing an error: And the error says: Type mismatch.Required:ActivityMainBindingFound:ViewDataBinding! The solution is to add a <layout> tag in the layout file that you are inflating!
Error inflating class androidx.fragment.app.FragmentContainerView // Android Kotlin Dev Diary
The cause of error in Logcat: The fix was to add a startDestination to <navigation> tag in the nav_graph.xml.
Expand ScrollView vertically if height is smaller than screen // Android Dev Diary
I have the following XML layout code in an Android app that I’ve been tinkering with: I wrapped my GridLayout in a ScrollView because on the landscape orientation of the Android app’s screen, my grid contents are cut from the view because they’re too tall, and there’s no way to see them without a scrollbar, […]
Sample Instrumented Test for Retained Text After Screen Rotation // Android Kotlin Dev Diary
First I added the following UI Automator to my app: So now my build.gradle (Module) file has the following dependecies: Then under the package app/src/androidTest/java/net/catzie/samplecalculatorapp I added the following instrumented test class: What it does is press the buttons 1, period, and 5 on the calculator’s UI to show “1.5” which should show up the […]
Prevent Huawei from Killing Your App //Android Dev Diary
I have been playing around with Android app development, particularly on how to retain UI values after configuration changes and minimizing the app to launch a different one. To retain values after configuration changes, I use ViewModels. And to retain values after minimizing the app, the following is supposed to do the trick: But in […]
ECG at Makati Med Heart Station
I just came home from Makati Med Heart Station, where I had my very first ECG test. Several years ago, I started feeling my heart “shaking” at random times, regardless if I was stressed or at rest, but usually lasting for only 1 second and it wasn’t painful so I didn’t worry about it. By […]
DataBinderMapperImpl Error: cannot find symbol (DataBinding) //Android Kotlin Dev Diary
Today I encountered the following error as I was building an Android app: Turns out, there’s an error in the related XML file, activity_main.xml! 😂 For other possible solutions, this StackOverflower answer may help: android: data binding error: cannot find symbol class
Cannot access ‘‘: it is private in ‘MoshiConverterFactory’ //Android Kotlin Dev Diary
I’m starting a new category on my blog — Dev Diary, to document some of the errors that I encounter and what I did to fix them. I’m doing this in hopes of helping developers (including my future self!) as they work with code (and to get more blog visits! LOL). It’s nice to save […]
BPI credit card activation thru text unsuccessful
I rarely use a credit card these days but BPI just sent me a renewed credit card. It requires activation before use. How to activate BPI credit card thru text: Send the following mesage to 225689 using the mobile number that’s registered with your BPI credit card: For example: BPIACT 0123456789 After sending the above […]
How to get Voter’s Certification at Makati (Requirements, Price, Location)
Today we went to COMELEC to request voter’s certificate. It is near Makati City Hall, along Morong St. near its intersection with F. Zobel St. The building says “Gen Pio Del Pilar High School” but Google Map says that the school is permanently closed. For the exact location of COMELEC, see the map above. Once […]