Hello Folks, there are situations when you need to revert all the commits of a feature without checking out an earlier commit. This allows you to retain changes made for other features while isolating the problematic ones.
[Read More]
apkToJava - Gem to convert apk file to java code
Hello Friends, here I am with another cool ruby gem apkToJava which will help you to improve your productivity while working on android project. This gem can convert apk file to java code and open it in a friendly GUI.
[Read More]
Android Padding vs Margin
Android padding vs margin is a very frequently asked question. Most of the beginners miss understand it. So here is a little help from my side. The idea behind android margin and padding is very similar to CSS margin and padding. Let’s understand it with examples.
[Read More]
Android UI for beginners
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]
Tool to execute commands in multiple directories
A few months back I was working on a project which had a SOA(Service Oriented Architecture). Which means I had to start 4 to 5 services from different directories to start my workflow. And it was important to monitor the logs as well. For a few days I just executed...
[Read More]
Writing a new programming language
A few months back I was wondering how much big/difficult task it is to write a new programming language from scratch. Then I thought I would never know if I don’t write one by myself. Thats when I started reading about compilers, how it works and what are the phases involved...
[Read More]
Print custom messages after executing git commands
Wanna have fun while coding? then this post is for you!
[Read More]
Cool tips for vim users
Hello Folks, I have been using vim for about 2 years now. And it is my primary editor when it comes to editing text or coding(other than java ;) ). Since I have been exploring vim for 2 years, I have learned some cool tips which vim users can use....
[Read More]
Schedule local notification in android
Hello Folks, In this tutorial we will discuss how we can schedule local notification in android. Its a super easy job and involves few android components.
[Read More]
Add album cover to mp3 file
Hi Guys, Here I am again with a new gem called FancyAudio. Any guesses what this gem might do or how to use it. Let me explain it for you.
[Read More]
MediaMagic: Convert any media file into encoded string or vice-versa
This gem is written with the intention of converting any kind of file into encoded string or vice versa. The code is available on github.
[Read More]