Passive Views: keep your UI code simple and stupid part 2 | by Rygel Louv | Apr, 2022

We keep discussing some techniques to make our UI code clean, stupid, and simple. Let’s talk a bit more about UDF Minimal image by Samantha Gades on Unsplash This article was made in two parts. You can find part 1 here This article is not necessarily about the details of the Passive View pattern but … Read more

Passive Views: keep your UI code simple and stupid | by Rygel Louv | Apr, 2022

Our UI layer should be dumb with minimal code and minimal logic that’s what everybody says but still, how can we achieve that? Minimal image by Sarah Dorweiler on Unsplash This article was made in two parts. You can find part 2 here (link TBD) Martin Fowler defines a Passive View as “A screen and … Read more

How to mock Retrofit API calls (or any other interface) | by Roman Kamyshnikov | Apr, 2022

In Android development, it’s quite common that we need to start working on a feature before the backend is ready. While we’re waiting for it to be ready, there are several ways to mock it, like using Postman, Firebase or Charles Proxy, but all these methods require some sort of initial setup that often needs … Read more

CI/CD Pipeline for Flavored Android Apps using Fastlane and Github Actions | by Kashif Mehmood | Apr, 2022

Build and distribute apps with different flavors using Fastlane and Github actions. One of the biggest pain points in the life of an Android Developer is sharing builds with different teams either a QA team UAT or sharing with some other devs. Building and sharing build on Average take more than 10 minutes and during … Read more

Unidirectional Server-Client Communication using SSE in Android! | by Hitesh Chopra | Apr, 2022

Image Credits-: https://www.pubnub.com/learn/glossary/what-are-server-sent-events/ In this article, we will discuss about the need of a client-sever communication, the role of Server-Sent Events(SSEs), the difference between SSEs and other communication mechanisms such as WebSockets and Long-Polling, and finally how we can implement SSEs in our Android app using the okhttp-sse Library. 1. Stateless communication b/w client-server (REST) … Read more

My journey to having my open-source Android app featured on the Google Developers Dev Library | by Ahmed Tikiwa, Senior Software Engineer @Luno | Apr, 2022

Photo by Mars Sector-6 on Unsplash Many developers are unaware of a platform called the Google Developers Dev Library and what it is about. I was one of those people and after finding out I was able to have my open-source Android app featured on the platform. In this article, I will outline my journey … Read more

Modeling Retrofit Responses With Sealed Classes and Coroutines | by Jaewoong Eum | Apr, 2022

Unsplash@S5jD0E8DOC0 As the rate of data communication increases, the complexity of the application architecture also increases. How an application handles API responses will determine its overall architectural design and code complexity. In this post, you will cover how to model Retrofit responses with Coroutines and Sealed classes to reduce code complexity and make your application … Read more

Activity Embedding in Android. Multi-pane support with Activity… | by Husayn Hakeem | Apr, 2022

Google released Android 12L to improve the Android feel and experience on foldables, tablets, Chrome OS devices and in general, large screens. This release comes at a time when large screens are growing in reach, thus increasing the need to scale app UI to support a wide range of screen sizes. Android 12L introduced many … Read more

Android Touch System — Part 3: MotionEvent Listeners | by Sherry Yuan | Apr, 2022

Photo by Ilyuza Mingazova on Unsplash This is Part 3 of my Android Touch System series. Parts 1 and 2 take a deep dive into touch functions (onDispatchTouchEvent(), onInterceptTouchEvent(), onTouchEvent()) and how touch events flow through the view hierarchy. This post will cover the main event listeners provided by the View class, as well as … Read more

Kotlin Multiplatform Mobile — sharing the UI State management | by Guilherme Delgado | Apr, 2022

In my previous story, I’ve talked about why I believe we can strongly improve the UI State management between the View and ViewModel on Android, by using a Model-View-Intent (MVI) architecture with the help of a Finite State Machine (FSM): In this story, I’ll guide you through the steps needed to upgrade this solution to … Read more