Wednesday, February 2, 2011

How to Android run on windows with first application ?


Step 1: First basic requirement of software installed in your pc .
  1. Java (JDK)
  2. Eclipse IDE
  3. Android SDK
  4. ADT (Android plug-in for Eclipse)
Step 2 : Java

If you already installed the any java version so please update the version .and JDK installer is straightforward and should not bring up anything interesting.

Step 3: Eclipse

Download the eclipse and install it .Eclipse is mostly used for java developers It is Eclipse IDE for Java Developers.

When the installation is complete for the Eclipse it is used with several java applications.

Step – 4 : Android SDK

Download the Android sdk and launch the SDK Setup

SDK Setup tool will immediately present you the list of all modules available for download. If it will get error so skip this step and follow:
Just cancel the step and go to the settings page and check that Force https://… checkbox like this

Check the root node (the one starting with https://…) and click the Install selected. Accept all the licenses and let the installer run for a while until it says everything is fine:

That’s it. You now have the Android SDK up and ready for work.

Step 5 : ADT

Time to install ADT  – Android Development Tools, a set of plugins for Eclipse that turn your IDE into a fully integrated Android development workbench. Point your browser at http://developer.android.com/sdk/eclipse-adt.html and find a section called Downloading the ADT plugin.

Now, looking  at a blank Eclipse installation that we will now turn into an Android-enabled IDE Go to Help and then Install New software and click on Add. Button.

After add Button and click ok then choose new Android item in the drop-down list next to the Work with : label

And click Next. Again, accept all licenses and wait until the installation is over. During the installation, you may be asked whether you accept unverified content. You can safely say yes, and trust all the certificates.

Installation is over and restart the Eclipse.

Installion is complete, But configure little ADT  so,

1 Go Window Menu.
2 Choose Preference .
3 Find the Android branch on the left.
4 Click on it and set the SDK Location property to the directory where you installed the SDK.

Step – 6 :  Creating a Basic App

Create a basic Android project

1.      Go to File menu.

2.      Choose New and the other

3.      Choose Android project.

After Click next button then fill the information of the project name, target platform for run the application and the official name of app. I chose to name the application bar, target it for Android 1.5  and chose to create an activity called Bar Activity

4 Click the finish button. After clicking Finish, Eclipse and ADT will generate a basic application according to the settings you chose.

5 Already launch the application but create an Emulater Instance first to launch this  app. Go to Window, then Android SDK and AVD Manager. This is a tool that allows you to manage your emulator instances. Switch to the Virtual Devices page and click New.

OK, the emulator’s ready! Now right-click on the root node of the project tree (the one that has an open folder icon and the name foobar next to it), choose Run As, Android Application.
The Android emulator is a good piece of software but it starts up quite slowly. It will show you a logo while it’s warming up:


 

No comments:

Post a Comment