This article covers the basic Android UI which every android developer should know. Here we will discuss what are the basic android UI building blocks and how they can be used. With a little attention you can master the basics of android UI design. I have created a demo application...
[Read More]
Decorator Design Pattern
What Is Decorator Pattern?
[Read More]
Junit Rules Vs Setup and TearDown
There has been a lot of confusion when it comes to Junit Rules. People hardly use it or avoid using it without knowing its essence. This article will cover the power of junit rules and how to implement them. Also we will see whats the benefits of using junit rules...
[Read More]
Android Build Process
There are a lot of steps involved in android build process. We will discuss them one by one. But before jumping to the explanation lets take a look at the below diagram first where I have tried to put all the steps of build process together.
[Read More]
What happens when android screen rotates?
Rotating the android device changes the device configuration. Android replaces the current resources with the best suited resources for that screen orientation. Thats why when we add a resource in android we add different versions of that resource. For example an image can be added in four formats(hdpi, mdpi, xhdpi, xxhdpi). The...
[Read More]
Is ruby monkey patching evil?
We have been using monkey patching since we had exposure to it. Now the question is ruby monkey patching is it good or bad?. Before answering the question lets understand what monkey patching is.
[Read More]
Android Instrumentation Testing Using Espresso
Hello Folks, This is my second article on Android Instrumentation testing. My previous instrumentation testing article was about testing a list view with core instrumentation (without any external library or framework). In this I am going to discuss the Espresso framework which I use for android instrumentation testing. I have also recored...
[Read More]
Testing Android Database
Hello folks, In this article I want to discuss how to test android database. Android database can be tested easily using Instrumentation tests. If you are writing the instrumentation test for the first time then there are few things that you need to setup before getting started with the testing...
[Read More]
MVP in android
Hello Folks, In this article we will discuss what is MVP in android and how we can use it to make our code better organised and unit/integration tested (video series on android instrumentation testing). There are mainly three components involved in MVP pattern Model, View and Presenter. Lets discuss about...
[Read More]
Gradient color in android
Hello Folks, In this post I will be showing how we can create gradient color in android and use it as a background. To create a gradient color we need to create an .xml file in the drawable directory. Below is the directory structure where you should put your .xml...
[Read More]