Ubuntu install Chinese fonts

Recently I had to install manually an Ubuntu with the xfce4 desktop. I couldn’t read Chinese symbols so here is the solution: sudo apt-get install fonts-wqy-zenhei It installs wide range of fonts for Chinese

May 4, 2020 · 1 min · gmirchev90

Spinner in Toolbar – How to change the selected item text color?

That bastard drove me nuts today. I do not understand why is it so hard to fix. I want the text to be white. After 2 hours of reading useless posts, I found a solution working for me.

May 4, 2020 · 1 min · gmirchev90

Implementing Face Detection in Android

Recently, I got a task to implement face detection for a camera preview we have within our mobile app. So if the app detects a face, a button should be displayed, otherwise – the button should remain hidden. There are several ways to implement face detection in Android

May 4, 2020 · 2 min · gmirchev90

Android Flux Architecture Example

I found Flux architecture for several months and I have written a couple apps with React & Flux and as an Android programmer also I think that it has to have an implementation. So I decided to do it. You can check it HERE. I really believe that Flux for Android will be a “groundbreaker” (may be not my try but the whole concept :)).

May 4, 2020 · 3 min · gmirchev90

How to get ScrollView height (getHeight() = 0) and how to display an arrow that it is scrollable?

Lets say that we have a ScrollView which should ahave an arrow at its bottom. That arrow is visible only when the ScrollView is scrollable (That means it has more content than it can display). In android the scrollview does not have a method isScrollable() and I am still wondering what is the reason. May be too complex realization.

May 4, 2020 · 1 min · gmirchev90

How to stop services from running in Ubuntu or how to stop mongo from autostart?

I wanted to stop the mongod service running on system boot in Ubuntu. This service is starting the mongodb database.

May 4, 2020 · 1 min · gmirchev90

Android prevent a dialog from closing when a button is clicked

My problem was that when a user clicks the Sign Up for example button I wanted to validate a field if it contains a valid email and after that dismiss or keep the dialog showing.

May 4, 2020 · 1 min · gmirchev90

Sample architecture to handle notifications in Android

The use case I am working in a company here in Bulgaria where we are building a huge android app with over 250 screens. It was time to integrate Firebase push notifications in it. Here were the requirements for them:

May 4, 2020 · 7 min · gmirchev90

Fighting android canvas – Hexagonal imageview layout for Android

We made a simple design for one of our apps which included a hexagonal network of images which should contain profile pictures of the users who liked a certain app.

May 4, 2020 · 1 min · gmirchev90

Let’s hook up Socket.IO with HapiJS in a single code base

So we wanted to integrate a websockets server within our REST api for which we were using HapiJS. I was previously using Socket.IO solution for websockets and I was very happy with it. So we decided to use it with our REST server in a single codebase.

May 4, 2020 · 2 min · gmirchev90