Android Development and Configuration in Eclipse

Hey Guys,

Hope you are doing good! 🙂

In this Article I will be explaining about the Android Development and how to setup android application development on Eclipse IDE . 🙂

Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment to build Android applications. [ The hyperlinks are displayed to give you more details about the specified keywords mentioned in the paragraph ).

Android 2.2 on Emulator

To start with the Development Part, you have to install Java platform (JDK)  first on your system and then  install the Eclipse IDE ,  Android SDK and the  Android Development Tool (ADT) plugin for Eclipse.

Download and Install JDK

Download and install the latest JDK (JDK 6 Update 24) from JDK download page .

Download and Install Eclipse IDE

Download and install Eclipse Classic 3.6.2 from Eclipse download page.

Download and Install Android SDK Starter Package

The Android SDK starter package includes only a single component i.e the latest version of the SDK Tools. Android SDK and AVD Manager is included in the same component which is used to download other components from the SDK repository site.

  • Download the latest Android SDK  starter package  from the SDK download page.
  • Unpack the archive to a suitable location on your system. By default, the SDK files are unpacked into a directory named  android-sdk-windows, if you are using the Windows as a Platform. 🙂

Add Android Platforms to Your SDK

To add more than one Android platforms (for example, Android 2.1 or Android 2.2) to your SDK, use the Android SDK and AVD Manager, included in the SDK starter package. It is recommended  to download multiple platforms, so that you can build your application on the lowest version you want to support. 🙂

  • Launch the Android SDK and AVD Manager on Windows by executing SDK Setup.exe at the root of the SDK directory.
  • On Available Packages menu, select the platforms to download.
  • Click on the Accept and Select all button and Install all the packages required.

Download and Install ADT Plugin

To install  the ADT ( Android Development Tool ) Plugin, you can take advantage of the Eclipse Software Updates Feature. By setting up a remote update site, you can easily download, install, and check for ADT updates.

  • Firstly, Launch Eclipse, then Select Help –>Software Updates.
  • In Available Software tab, click Add.
  • Enter a name for the site in the Name field and in the Locationfield, Enter the Following URL: and then click OK. In the following snapshot I have already added the site so, I have selected the site from the list of available softwares. 🙂
  • Then Restart Eclipse.
  • To check whether the ADT has been installed correctly, Try to create a new project by selectFile > New > Project., you should find Android Project listed on project wizard.
  • Click on the Next and Create a new Project.
  • When you create the New Project in the Eclipse IDE, You can see the different types of files for the application development purpose having different meanings. They include:
  • AndroidManifest.xml snippet — This file is the application deployment descriptor for Android applications.
  • IntentReceiver – This demonstrates the implementation of an IntentReceiver, which is the class that processes intents as advertised by the IntentFilter tag in the AndroidManifest.xml file.  These Intents are basically used for the creation of the activity purpose. Activity Creation is basically a event generation to transfer the control of the program from one file to the another file with the useful parameters. 🙂
  • — This implements an Android activity, the primary entry point to the sample application of this tutorial.
  • Main.xml — This contains the visual elements, or resources, for use by Android activities. This is the file where the GUI of the Android application get developed.
  • — This file is automatically generated by Android Developer Tools and “connects” the visual resources to the Java source code.

Enjoy 🙂

NetBeans Plugin – A new start !

After the NetBeans Certified Training, I have decided to make a small plugin just to test it it works perfectly or not and it is working awesome. 😀 Netbeans have a modular architecture that permits plug and unplug functionalities easily using the Plugin Manager.

It’s also easy create new plugins using Netbeans itself. The steps which I performed while making a plugin are as follows:

Create a New Project clicking in File → New Project.

In Categories select Netbeans Module and in Projects select Module.

Click in Next.

Continue reading “NetBeans Plugin – A new start !”

NetBeans Certified Training

Hi guys, Hope you having a good time. 🙂

Well, coming back to the point. I attended the Oracle NetBeans Certified Training organized by NUGNagpur leader Mr. Tushar Joshi Sir and taken by Geertjan Wielenga of Oracle Corporation. It was a International training as one group of people from TOGO and CANADA were with us i.e NetBeans User Group, Nagpur. The whole training broadcasting done with the help of WebEx. So, There were 17 participants from India for this training and we had a great time for 2 days i.e 27th and 28th Nov, 2010. The training time was from 2.30 pm to 9 pm. Since we have successfully completed the training, I am happy to say that we are now called as “NetBeans Certified Associates“. I wll be more happy if I can start from this platform and become a “NetBeans Certified Engineer” which requires to submit a application/plugin for the NetBeans Platform and a complete documentation for that plugin.

So, some of my friends have already written the blog about what happened in the 2 days of training. You can directly read the whole thing from below urls:

TechAshram ,  Ameya’s Blog

So, now after reading from the above blogposts, I assume you all know what has happened in the training and what was the agenda of the training. Now I would like to tell you all what I have learnt and will take from the NetBeans Certified Platform Training.

Basically, This training has provided me a Awesome platform to work on the NetBeans Platform. For almost 2 years I was working on the NetBeans Console Applications, NetBeans Desktop Applications and also the web applications. I had also developed some projects using the NetBeans IDE. 🙂 But Now, after the training, my point of view regarding the NetBeans has Completely changed. I wasnt knowing the NetBeans Platform previously. But, now I know what is NetBeans Platform is all about. Its amazing . 😀 .I studied the structure of NetBeans Platform. How NetBeans actually works! How the different components of the NetBeans collaborate with each other, how the different modules inside NetBeans interact each other. 🙂

We can use the components of the NetBeans directly to develop the application or plugin. You can use the Components of NetBeans wherever you want to that to be used and placed. This offers great help to build the application.

I learnt a lot in these 2 days. The Complete atmosphere was like 17 developers coming at one place, learning one platform, applying different brains for the unique purpose and enjoying to the fullest! Oh..I forgot to mention in the previous sentence that It cant happen without a cup of Coffee. Everybody will agree that “A lot can happen over a Coffee” 😉 .

So, guys please join NetBeans India group and NetBeans User Group, Nagpur as early as possible to attend such lively meetings in the future. 🙂

Well, I have decided to build a plugin for NetBeans which will record the recent changes done while using the complete NetBeans IDE application. If anybody wants to join on this open source plugin application, then please join ping me up and also share your views on Netbeans User Group, Nagpur mailing list.

I am sharing some of the pics of the Netbeans Certified Training as follows:

This slideshow requires JavaScript.

Enjoy 😀

NetBeans IDE – Code in a Smarter way !

NetBeans is a free, open-source Integrated Development Environment for software developers. One can create professional desktop, enterprise, web, and mobile applications with the Java platform, as well as PHP, Groovy, C/C++ ,Ruby and  JavaScript with the help of NetBeans.

NetBeans IDE 6.9.1  introduces with some of the following important features:

  • JavaFX Composer
  • Support for JavaFX SDK 1.3
  • Support for the PHP Zend framework
  • OSGi interoperability
  • Ruby on Rails 3.0
-Java Desktop Applications

Create professional standards-based user interface with the NetBeans Swing GUI Builder. Save years of work by building Java Swing desktop applications with the NetBeans Platform framework.

-JavaFX Composer

Use the JavaFX Composer to lay out JavaFX GUI applications visually, similar to the Swing GUI builder for Java SE applications.

-Java Enterprise and Web Applications

Build web applications using CSS, JavaScript, and JSP: Support for frameworks includes JSF (Facelets), Struts, Spring, Hibernate, and a full set of tools for Java EE 6, CDI, GlassFish 3, EJB, and web services development.

-Dynamic Languages

Benefit from one combined tool that supports JavaFX Script, CSS, PHP (Zend and Symfony), Groovy and Grails, Ruby and Ruby on Rails, and JavaScript.

-Visual Mobile Development

Create, test and debug applications that run on mobile phones, set-top boxes, and PDAs using JavaFX Mobile and the Java ME SDK 3.0 Platform.

-C and C++ Development

Edit, profile, and debug C/C++ applications, and make the most of multiple project configurations, remote development, and packaging.

Creating a new first application in NetBeans IDE 6.9.1 :

1) After completing the installation of NetBeans 6.9.1, this screen will come up firstly which is called as the startup page or a welcome page. You can even change the settings if you always want this screen to popup when NetBeans Starts or you can even omit this screen by unchecking the check box of “start on startup“.

2) Then click on File menu option and select New Project.

3) Then from Categories select Java and then from projects column, Java Application and click Next.
4) Then give the Project Name and click Finish.

5) Now the screen will come up where on the right hand side, there is a java editor and on the left hand side, there is a hierarchy view of all the files that are present in the projects opened.

Now after this, you can start with your coding in java using NetBeans IDE. This was just the short introduction on NetBeans IDE sample java application. Trying building awesome applications and keep innovating..Till then,

Enjoy 😀

NetBeans User Group, Nagpur – First Meetup !

Today, I attended the First meetup of NetBeans User Group, Nagpur. 10 very passionate people of Netbeans Platform were present in the meetup and we had the fun altogether.

The details regarding the venue of this meetup were :

Date and Time:
23rd Sept 2010 – Thursday ; 8:30 PM – 9:00 PM

Beans & Buddies
Pratibha Sankul
besides Alankar Cinema
North Ambazari Road , Nagpur

Google maps
Directions for Alankar Cinema :

An introduction of the group:

NUGNagpur is a group of people passionate about NetBeans IDE or NetBeans Platform and who are located geographically in Nagpur, Maharashtra, India.  This group is the main collaboration tool for the members.  This is a focused group and the members intend to meet many time in a month.  The objective of the group is to share personal experiences, tricks, tips and learning with each other and contributing the community as and when possible. 🙂

Now coming towards the meetup, We had the discussion about what exactly “User Group” is all about. The final conclusion result out of the discussion was “User Group is a group of people who actually are users of the technology, for the group is all about. 🙂 Its the group in which the members meet regularly to discuss the views for the technologies or they can even interact on the mailing list to share knowledge and experiences.”
The Agenda for the meet was:
  • What is NetBeans IDE / Platform?
  • Why is NetBeans IDE /Platform and how much it is used to the developers?

Sir, Tushar Joshi was really motivating for us. 🙂 He was explaining about the NetBeans Platform and interesting stories associated with it to us like –

A story of Jarda Tulach (NetBeans founder & architect), about how he started developing NetBeans as his Final Year Project and many of the colleagues  joined him later on. They started with their own company “NetBeans”  in 1998 with the release of the NetBeans IDE as the first commercial product and it then, Sun Microsystems took over that company and all the members of NetBeans joined Sun Microsystems for the later development of the product. Awesome story for the youngsters who are willing to learn java and learn Netbeans platform. It indeed motivated us a lot. 😀

On 26th October, it was NetBeans Birthday ! So on this occasion, Yarda Tulach gave an interview in which he said in his own voice,

I am a infant terrible of NetBeans. This means I am a  “terrible child” of NetBeans. 🙂

I was also part of the group which started the original student project in 1996 at the Faculty of Mathematics and Physics of Charles University. As for the official role, I work at NetBeans as an architect.

Originally, there were 7 of us working on a student project at school. We worked on an IDE written in C++ and it was aimed for Unix, so we called it Xelfi (meaning Delfi for uniX). We’ve been trying to create the IDE for a year or so, but we had little success. I got the idea that we could rewrite Xelfi in Java and got ridiculed for it at first, but after 6 months or so we started to code Xelfi in Java 1.0.2.

NetBeans in not just an IDE, but its a platform. I’m very happy about it. If you build applications today, modular architecture is a must. You can benefit heavily from reusing the NetBeans platform. So that’s my most favorite feature.

Lastly when the question asked to him “Where do you find NetBeans Heading” then Yarda replied : I think NetBeans will play a bigger role at Sun – you can hear Jonathan Schwartz talking about NetBeans a lot these days. Modularization of the Java platform is very important, there’s a relatively new JSR 277 – the module system for Java. You can be sure that NetBeans will support this JSR, there’s a lot of need to write modular applications. Java needs to have a good answer for modularity.

This interview was very much interesting for the NetBeans lovers as they get a lot to learn from this and it also gives a relative idea of how actually NetBeans has developed.

We also discussed about Technology Rock for GTD ( Getting Things Done ). You can get more information about it from here.

Our group has got an offer of learning the platform to develop in NetBeans IDE free of cost in 2 days as a training through Skype or WebEx by an expert of NetBeans and all the attendees of the meetup completing the training will be called as NetBeans Certified Associate (NCA) & after the training, some assignments will be given to us and after submitting those assignments, we will be called as the NetBeans Certified Engineer (NCE). Cool right ? !!

Sir also told us about the process of creating a patch for the NetBeans and motivated us to go through the source code of NetBeans as it is open source. It was very interesting and we havent thought of before. I will definately try it out soon…Firstly, I will have to find a fault/bug in it and then will make a patch 😉

We were ROFL when sir told about the full form of RTFM which is the most common word used for the basic questions in the technology forums. ( Please dont waste time, just google it out ) 😀 😀 😀

I have attached some of the pics of the meetup, just check them out.

Some of the pics of the meetup :

We had very funny moments within the meetup as it was not a very formal meetup. Everbody was in the casuals and very expressive. Everybody had a hot coffee and the environment was just awesome..It felt like this group gonna make wonders in the coming months…This is not a joke, our group will !!! 😀

The current stable version of NetBeans IDE is 6.9.1. You can download it from here.

In this meetup, we have decided to plan about the short term goals which we want to achieve. Some of the goals that we planned are

  • Downloading Netbeans Stable version and installing it on every members system.
  • Learning the NetBeans through the documentation.
  • * Using the mailing list *

Note:  * means Very Important! 😀 Long term goals will be like developing a open source project and all. So, for those who are still not a part of this group, dont feel jealous, just get in the group and have tech fun. Join this group from here. I will keep on updating the news regarding the group here only..So keep checking..Till then,

Enjoy 😀

OSI Days 2010, India

OSI Days 2010, India is the Asia’s Largest Open Source Conference which is going to be held between September 19-21, 2010 at Chennai Trade Center, Chennai. Many Speakers from all over the world will be coming and giving their thoughts on different open source technologies. New Technologies and the opportunities in them will be clearly discussed. I have registered for OSI Days 2010 and also received the silver pass for the entry. Mine attending the days is not sure as the sessionals exams are still going on in our college upto 20th september. But if it’s possible will try to attend. Anyone of you want to join and register for OSI days can do from the website link given and enjoy the days 😀

Website Link:

JUG Nagpur 3rd meetup @Infospectrum

I attended the JUG ( Java Users group ) Nagpur meetup today @Infospectrum Nagpur between 2 to 4 pm and learnt a lot many new things.

The 1st session was held by Mr. Harshavardhan Karkar on Java Server Faces. In this session, he explained different features of JSF as:

  • Robust Component Framework
  • Event Driven Programming
  • Extensible Architecture

Then the purpose of JSF as:

  • Faster Web Application Development
  • Event Management
  • Validations

The latest version of the JSF is JSF 2.0 in the market. There is a Mojarra Project going on about which he given the reference which you can check from here.

He further explained about JSF tags which include:

  • JSF Core Tags Library
  • JSF HTML Tags Library

Some of the code reference for these is as follows:

<%@ taglib uri = “…./core” prefix =”f”>

<%@ taglib uri = “…./html” prefix “=h”>

He also explained the importance of the JSF core tags which can be useful for Layout Management for the components. After this, he shifted to the faces-config.xml which basically consists of <navigation> part first and <beans> the next. He then concluded with telling the web.xml file and its importance. I learnt a new thing today and this will help me to develop some open source project in the coming days.

Then Mr. Rahan Ranade, Oracle Corporation, started with the next session on Rock Star Developers. He suggested some of the tips related towards the passion of coding, developing, managing and most of all, making a difference. He suggested some of the bloggers to follow. I want to share them for you all,

  • Paul Graham
  • Joel Spolsky
  • Bruce Eckel ( Thinking in Java )
  • Dave Thomas

Also some of the podcasts to follow are:

  • The Java Posse
  • NetBeans
  • Developer Podcast
  • Drunk and Retired
  • CNET- this week in tech

and lastly for referring to the videos refer:

  • Open Courseware
  • Google tech Talks

Lastly he said to become a better developer refer, 🙂

In between the sessions, Mr. Tushar Joshi sir, shared his experiences and knowledge about the talks and also given some of the referals as:

  • (for the forums).
  • Beyond Control tool and JCompare tool ( which is in the developing phase )

After the sessions got over, we had a informal rounds of introduction of everybody of the attendees and discussed the questions raised. Then we took the snacks and coffee. It was really a great meetup happened to be in the Netscape Conference room @Infospectrum and I really enjoyed it a lot. Anybody interested in joining JUG please contact me. I will tell you about the further details and steps you should need to perform. Now as always, eagerly waiting for the next JUG Nagpur meetup and its agenda. 😀 till then,

Enjoy 🙂