Ubuntu not starting due to Kernel panic error - Could not locate dkms file

I guess I updated recently to the latest linux-headers-kernel and my laptop decided to surprise me one morning. It just didn’t boot up. It got stuck at the point where it said it couldn’t find the dkms.conf file.

December 7, 2021 · 1 min · gmirchev90

Are you a product developer or a project developer?

I am so sad to see really good developers leaving because we are not doing products but projects an unknown CTO Believe it or not, I heard the above on a lunch with the whole Android team and with the CTO of the whole company that I was working for. What does it mean to build a project vs building a product? Is there such a huge difference when you are developing a software solution? Let’s dig deeper into this.

October 8, 2021 · 5 min · gmirchev90

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: https://kumarvinay.com/how-to-enable-bluetooth-headset-microphone-support-in-ubuntu-20-04/ 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.

October 8, 2021 · 2 min · gmirchev90

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 for the current month of October, there was a small difference. Can you guess it in the screenshot below?

October 4, 2021 · 3 min · gmirchev90

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 and your app will crash. What is the exact issue?

September 28, 2021 · 3 min · gmirchev90

Fix the display of the toolbar in Android Studio

From time to time I get this really nasty bug where the toolbar in Android Studio is aligned to the start of the screen. I mean the part where you select the device and press Run, for some reason sometimes just moves to the left and bringing it back to the right is a bit of a pain. Also if you hide the main navigation toolbar by accident, then it is really hard to bring it back. Here is the solution: ...

September 28, 2021 · 1 min · gmirchev90

Android Studio Arctic Fox not building a signed APK

Generating a signed build using Android Studio Arctic Fox version 2021.3.1 seem to be a tricky thing to do. I spent several hours just to figure out where the issue is and at the end, I still don’t know what is the exact reason for signing to not work.

August 17, 2021 · 2 min · gmirchev90
title

Creating a bottom sheet dialog with rounded corners and expanding it to full screen

Sometimes even simple and easy stuff can be complex on Android. Such is the case where you want to have a bottom sheet dialog with rounded corners which expands to fullscreen. Here is how I did it on Android 6.

July 5, 2021 · 2 min · gmirchev90
cast-01

Why integration of Google Cast alongside Exoplayer really sucks?

Recently I played around with the integration of Google Cast inside Exoplayer and I was really amazed to see how bad it is and how much it sucks. I decided to write this post with the idea it will help someone else who is also struggling with the Google Cast integration for exoplayer. Requirements So the requirements I had for the integration of Google Cast are quite simple: Play an item on cast Play a list of items - when you press Next you go to the next item Forward / Backwards with 30 seconds - so you can skip through the track Play / Pause support Switch between lists of items - you can player item 2 of List A, you should be able to switch to item 3 of List B Switch between phone playback and cast playback - switch from cast to app and from app to cast Update the progress when casting - time elapsed should also be updated Volume up/down are supported

June 11, 2021 · 5 min · gmirchev90

Migration from Gson to Moshi - small tricky parts

Gson is outdated a bit with the last commit done quite some time ago. We also had implemented the Moshi library in our Gradle dependencies and these are the 2 reasons why we decided to move away from GSON.

April 4, 2021 · 2 min · gmirchev90