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, […]
Technology
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 […]
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 […]
Get “order” object/details from Thank You page of WooCommerce (WordPress)
It’s been a long while since I last posted anything related to coding. I haven’t really stopped, but from Android app development, I switched back to PHP. Life has become occupied with other things, but when I do code, it’s in WordPress with WooCommerce. It’s for my online shop. In my opinion, WordPress is not […]
Git/Bitbucket: Resolving “fatal: unable to create thread: Resource temporarily unavailable” error during push
I’ve been trying to push a new WordPress site’s codebase to my Bitbucket Git repository but it kept on failing with the following error messages: I was trying to push my codebase from my server (hosted by Namecheap) to Bitbucket. The solution to make the push work was to enter the following through command line […]
GCash Customer Service – Does it even exist?
I run a small baked-per-order goods business and many of my customers wanted to pay in GCash so granted them their wish to make payment more convenient. Prior to this, we used to accept bank transfer/deposit only, but when my husband showed me that he could cash-out money from his GCash account by sending it […]
Samsung Galaxy S8 stuck on model name screen / SM Megamall SAMSUNG Service Center
One afternoon, I was playing an “action” game on my Samsung Galaxy S8 when the phone suddenly froze — no button responded to my presses, whether it’s a soft button or hard button, with the motionless screen of my game still on display. After a few seconds, the phone turned off. I noticed that my […]
Android Kotlin: ‘getter for position int’ is deprecated. deprecated in java
Today I encountered a deprecation warning as I’m coding the app: ‘getter for position int’ is deprecated. deprecated in java And I was like, whoa, this wasn’t deprecated a couple of months back when I last touched Android code… this is how long I’ve missed out! 😂😂😂 I haven’t touched any app code for a […]