Excellence is not enough!

Decorator Design Pattern. When and Why?

In this piece of article i am gonna talk about Decorator design pattern, it’s use-cases and why and when we should think of it’s presence and finally i am gonna show you it’s Kotlin implementation. The decorator design pattern comes handy when you wanna add some functionality to an existing class/object without altering it’s current…
Read more

OKHttp Authenticator

In this piece of article I’m gonna talk a little bit about OKHttp Authenticator and it’s use case. Long story short the Authenticator class comes handy when the HTTP Request sent from Retrofit, encounters 401 error status code (UNAUTHORIZED: The request has not been applied because it lacks valid authentication credentials for the target resource).…
Read more


How LinkedIn could help your career or business?

“Hello World!” In this piece of article, I am gonna show you how you could take advantage of Linkedin, to achieve your career/business goals, in a clean easy way!. Ok, there are lot’s of people that has an account on LinkedIn as they have on other platforms, but the problem is they could not and…
Read more

Do you code DRY!

What is DRY principle, and how to achieve that in your android development journey, let’s discuss. DRY stands for “don’t repeat yourself!“. it simply means that you have to never write any piece of code twice otherwise you are really doing it wrong. because when a logic related to that piece of code changes we…
Read more


Android Must-Have tools and libraries

Here I am gonna name some of the most useful and necessary tools you could use in android development. Beside android studio and java/kotlin installed on your device, there are some other tools and libraries that can help you enhance your android app quality, so let’s go through some of theme. LeackCanary: A widespread tool…
Read more

memory leaks

Android Memory Leaks

Here i’m gonna discuss the memory leak and some causes of this defect in android apps. So what is the “Memory Leak”? Simply the memory leak means that you have allocated a memory to an object but never have the chance to free up that allocated memory. that causes the garbage collector neglect that part…
Read more

Kotlin Object Keyword

In this post we are gonna find out what is the Object keyword in Kotlin and discuss it’s use-cases. in one definition the Object is another way to declare classes but with some differences, the most important difference is that defining an object makes it act like a singleton object, also by defining an object…
Read more

How to Unit Test live Data?

In this article we are going to discuss how we could unit test the Live Data object from googles architectural components. If you have tried to test live Data Object on Android platform you have certainly encountered the error below. java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked. See for details. at android.os.Looper.getMainLooper( at android.arch.core.executor.DefaultTaskExecutor.isMainThread(…
Read more

Rx Android

Implement search using Rx.Android

In this article we are gonna learn how to implement a handy search tool using RxAndroid. So let’s take a look into the UI code: private val searchSubject = PublishSubject.create<String>() private fun initUi() { svMain.setOnClickListener { svMain.isIconified = !svMain.isIconified } svMain.setOnQueryTextListener(object : SearchView.OnQueryTextListener{ override fun onQueryTextSubmit(query: String?): Boolean { Utils.hideKeyboard(context!! , svMain) return true }…
Read more


How to create android custom dialog

Here we’re gonna discuss how to create a usable custom dialog for every day android work . Using dialogs for showing some messages or asking user what to do in some situations is a common and necessary feature in android development , so maybe you are tired of simple and ordinary standard dialogs and want…
Read more