The Android guy

First look on Hilt

onCreate A new Dependency Injection library called Hilt was presented from the Google team. It was designed on top of Dagger library and provides a simpler, less boilerplate API to handle dependencies in an Android application. As first try, it was a real game changer. Therefore, we will make a short introduction to it, and then discuss about some opinions. Why was it build? First of all, Dagger was a little hard to start with, especially for beginners.

Realm 7, the frozen throne

onCreate As many of us might know, Realm has already introduced freezing objects. Personally, I have been waiting for long time for such feature. So, what actual problem does this solve? A lot of us might have faced this issue: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created. I believe the error speaks for itself. Realm < 7.0: When you call Realm.

Why LiveData is the best solution (yet) for UI

Why LiveData is the best solution (yet) for UI As far as I am concerned, there are many developers who don’t like LiveData. However, for the UI part, there is no better API to achieve MVVM (or even MVI,or stateful MVVM). Furthermore, makes the UI control very easy. There might have been some small misconceptions regarding the usage of it, but, if you use LiveData for the purpose it was created, I think that’s far better than any other API (for the moment).

Coroutines and callbacks

Callbacks in Java are probably the most basic way to perform executions/send actions between classes. If you have chosen to use coroutines in a project, you want to keep the same style everywhere. But what if some of the libraries you use, are still using callbacks? No worries, Kotlin coroutines are easily integrated with callbacks. It’s just a small workaround to make. Let’s think of a very simple use case:

My first remote experience

typealias Coroutine = Quarantine I hope you get the joke…. Well, it has been a very rough year for me, “motion-ally” and emotionally. I moved to Germany just when all these corona fear started. Luckily I got time to get introduced to the team and the project and got ready to start fresh . And then, since the situation with the epidemic wasn’t getting any better, the company decided to switch to home office.

Getting rid of the white screen on the app start up

Details matter especially when it comes to making users happy. We have all kinds of users, those who don’t care how the app is designed (just do what he/she needs), those who care, and those who are developers themselves. I have met people who don’t use a single app just because it has some strange animation, and they hate it. For me, it’s a little from both. I Like seeing a minimalist design (like Airbnb Android app, which is one of my favorites, for instance), but it is also important to fulfill your needs also.