Category: Android

  • You won’t believe how much time you will save with this Git pre-push hook

    Introduction A significant part of being a successful software developer is refining our workflows to optimize productivity. One method I’ve found incredibly useful is integrating Git hooks with static code analysis tools such as Detekt for my Android projects. The Role of Git Hooks and Detekt in Code Quality Before we dive into the actual…

  • Show layout bounds from command line

    Lately I found myself clicking through Android Settings menu to enable and disable “Show layout bounds” to check if views are where are supposed to be a bit too often. Using the menu once is OK. Using the menu twice is still OK. I live by the Rule of three so when I hit the…

  • Diventa un Android Dev

    Dal 1 febbraio 2021, in collaborazione con CGM Consulting, partirà il mio corso di programmazione Android destinato a tutti coloro che si stanno avvicinando al mondo della programmazione mobile: https://bit.ly/corso-android-ivan-morgillo Anche se sei già un dev, c’è sempre la possibilità di aiutare qualche amico o amica interessati ad una carriera come Android Dev 😉 Il…

  • IntelliJ IDEA / Android Studio Tricks: Surround With

    In one of my previous posts I wrote about one of my favorite features of IntelliJ IDEA/AS: Live Templates. “Surround With” is a sort of LT’s cousin. When you want to wrap a piece of code with a specific snippet, you select the code and hit the “Surround With” shortcut. On Mac you can access…

  • ADB Pro: Install and run an Android app on every connected device (2026 Update)

    I usually have only one device connected when I develop non-UI related parts of the app, but when it comes to UI, I tend to try out the app on as many devices as possible. There was a time when I actually had physical devices connected all the time (https://ivanmorgillo.com/2016/01/05/first-hardware-project-of-2016-device-holder/), but lately I have been…

  • My week at Droidcon Zagreb and App Builders

    Last week was quite intense for me. For the first time I had two conferences in two countries in 3 days. I’m definitely too old for this 😜 Droidcon Zagreb Droidcon Zagreb started like this: The moment they dropped us at the hotel, we got a bag full of gifts and candy! There were plenty of…

  • Running Android Unit Tests before Git Push

    This is a quick note about a Git hook I use to double check that everything is fine before pushing to our remote Git repo. This covers a paranoid scenario, I know, but sometimes a refactoring can go wrong and lose pieces between production code and tests: every now and then, one of my tests…

  • Android Library AAR and Javadoc

    As an Android developer, I’m used to ask Android Studio/Intellij Idea for documentation constantly. I have even replaced the shortcut: now, it’s F1, the old-fashion help key. When I want to know about a method or a class, I hit F1 and the JavaDoc shows up: smooth. How does this works? Story time! The Catapush user…

  • ADB over WiFi

    A few days ago, I built a device holder to place as many devices as possible on my desk without losing my sanity (https://medium.com/@hamen/first-hardware-project-of-2016-device-holder-4ef25670c507). One more step in that direction is solving the charging issue: N devices, with turned on screen, wifi and gsm data vs Powered USB Hub Poor USB Hub cannot win against…

  • Back in Krakow for the Droidcon

    After almost ten years, I was in Poland again last week. Ten years ago I was an Erasmus student; last week I was a speaker at Droidcon Krakow! The venue Every Droidcon feels like a family reunion to me, but the funny part is that the family is continuously growing in size, every time we…