Knowledge base

RecyclerView loses focus when scrolling fast … or how to use it on Android TV

We had a project where we were aiming to reuse the same codebase across mobile and TV. You have this care very often and there is this consideration of: Should we use the Leanback Fragments? The experienced Android TV developer that is always ignored. We give the project a quick go and check how it … Continue reading RecyclerView loses focus when scrolling fast … or how to use it on Android TV

Taming websockets with Coroutines, Clean Architecture and a library

Websocket integration is one of the biggest issues I had in my whole experience with Android. Why is it such a huge pain? There are several reasons behind that: Connection should remain stable no matter what – and we know how complex the Android lifecycle can be. Sending data can be a one-way operation without … Continue reading Taming websockets with Coroutines, Clean Architecture and a library

Enable bluetooth headset microphone on Ubuntu 20.04

After months and months dealing with this freaking issue that has become a pain in the ass, for real, there is this article: That made things working again. I just cannot believe how much effort is needed to make a simple bluetooth headset work on Ubuntu. It still doesn’t work great, but it is fine.

How to make DatePicker stretch when CalendarView does not fit the screen?

In Android we have to deal with both big screen and small screens, tablets, watches, TVs and many other devices. In our case, we had a device with a 3.2″ display and other one with 5″ display. And on both of them we show a DatePicker dialog to choose a date. And guess what? Especially … Continue reading How to make DatePicker stretch when CalendarView does not fit the screen?

Approaches not to cause a crash when setting toolbar title on the activity through a fragment

Setting a toolbar title on the activity should be easy, right? But what about if you want do it through a fragment? Still easy? Well, not exactly. The issue is that you may try to touch the toolbar in a moment where the activity is actually still not inflated. This will cause an exception immediately … Continue reading Approaches not to cause a crash when setting toolbar title on the activity through a fragment

Loading…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.