Broadcast receiver is the one of the basic and important components of the Android application. There are two different ways of adding broadcast receiver in the Android application. It can be added either programmatically or in Android Manifest file. You should be careful while adding broadcast receiver because unnecessary broadcast receivers drain battery power. If […]

,

One of the favorite basic questions asked by the interviewers: Q. Write a function to swap two integers? A “C” programmer will write function similar to . But what if you are asked to implement the same method in Java, then you will answer that pointer concept doesn’t exist in Java. Everything in Java is reference. And […]

, ,

In code development, be it one or the other requirement, we need to access the environment variable. In this post, the environment variable will be read/set in 5 different programming languages. C language In C, environment variables can be read and set by getenv() and putevn() methods respectively. The example code is shown below. Java […]

, , ,

This tutorial is followup of the gradle custom plugin tutorial part-1. If you haven’t gone through it yet, then I would recommend you to first read it in order to get the better context. In this tutorial we will cover the following topics. Define custom Task class Passing arguments to custom plugin task Nested arguments Testing the […]

,

This tutorial describes the way of creating Gradle standalone custom plugin. It covers the following topics Creating task, and using it in Custom plugin Stand alone Custom plugin Short plugin id Customize Gradle setting using settings.gradle Project info : Gradle version : 1.1 OS platform : Ubuntu 12.10 Prerequisite : Basic understanding of Gradle script. […]

, ,

Gradle is a simple and yet strong build tool. It is similar to the Ant build tool. It manages the build well and also handles build dependencies. The best part of Gradle is that it is open source project. If you are thinking about installing and giving it a try, then you are at the […]

,