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:
    https://dl-ssl.google.com/android/eclipse/ 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. 🙂
  • Sample.java — 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.
  • R.java — This file is automatically generated by Android Developer Tools and “connects” the visual resources to the Java source code.

Enjoy 🙂

Advertisements

NetBeans IDE vs Visual Studio

The comparison between NetBeans and Visual Studio is just like the comparison between java and .net which is never ending. 🙂 The two software development tools / environments , Visual Studio and NetBeans are one of  the vastly used as Software or Web Development IDE (Integrated Development Environment). With such features,it has helped and provided developers or users the enthusiasm to develop softwares. I will be differentiating the two IDE’s in their respective areas.

Visual Studio 2010

Parallel Programming

Parallel programming is simplified, so both native- and managed-code developers can productively build innovative applications. Continue reading “NetBeans IDE vs Visual Studio”

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

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

Google maps
Directions for Alankar Cinema : http://bit.ly/b99xgD

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 😀