How to read environment variable in 5 different languages?
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 […]
environment variable, java, programming language, python
Gradle custom plugin (part-2)
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 […]
gradle custom plugin (Part-1)
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. […]
custom plugin, gradle, Tutorial
how to install gradle
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 […]
Copy-paste with Intent and support for HTML on Android.
Android provides support for copy and paste feature using ClipBoardManager. The developer.android.com provides a brief description along with an image which helps to understand the Copy-paste framework. “To copy data, an application puts a ClipData object on the ClipboardManager global clipboard. The ClipData contains one or more ClipData.Item objects and one ClipDescription object. To paste […]
Android jelly bean, Clipboard, copy paste, Tutorial
xml parsing in gradle script
Gradle is a great tool for build management. Recently I started using it in my projects. In one of the requirements I had to parse the xml file using gradle. I started looking for help from blog and gradle documents but I hardly found any. I started fiddling around and discovered that it is achievable […]