Tag: android
-
The Do’s and Don’ts of Jetpack Compose

Jetpack Compose is fun. It allows us to build beautiful, functional UIs very quickly and in a reactive way which has unlocked new architectural patterns that were previously very tricky to integrate with the old View based system. As with anything new, it is also very easy for us to shoot ourselves in the foot…
-
Accessing the user’s current location and location history without their permission on (older versions of) Android

Caveat before you read on. This article was initially written a few years ago but never published. Google has since then patched this particular vulnerability on devices running Android 10 and later but a lot of users still use older versions of Android to this day so I thought it was still relevant to post…
-
A super simple and performant LazyStaggeredGrid for Jetpack Compose

As the title indicates, I have been on the lookout for a simple staggered grid for Jetpack Compose, one that recycles items correctly. Apparently such a feature is in the official Compose roadmap but it’s not planned for immediate development so we may have to wait a little while. In my search, I found a…
-
Getting Fresco to respect HTTP response cache headers

Fresco (http://frescolib.org) is a very popular image loading library for Android from the folks @Facebook. It’s also the library of choice for the Android team here @ASOS, due to its flexibility in handling complicated image requests (e.g. low and high resolution parallel loading of images), its buttery smooth performance and its very robust memory management…
