Android development is to jump start by installing the components needed for the development.
This is the guide for installation although the android developers website provide much help for newbie developers,I will try with some screen shots and some solution for common errors during the installation.
what will you need ?
Eclipse IDE
Download Eclipse IDE from http://www.eclipse.org/downloads/ , select the java developers package or java EE developer package.You will get an zip file after downloading,Extract it to some location in your local drives.[ Do Extract the package and dont run the application as is in zip file ]
Java Developers Kit(JDK)
Download JDK 5 or 6 from http://java.sun.com/javase/downloads/index.jsp and complete the installation.
You have to install the ADT plugin to your Eclipse IDE inorder to develop androidapplications.You cannot directly download this ADT plugin,you can only download through the IDE interface.
Now run the Eclipse application and select Help > Install New Software.
In the Available Software dialog box, click Add
Provide a name for your remote site ex: Android plugin
In the Location field, enter the URL: http://dl-ssl.google.com/android/eclipse/
[I am using http instead of https to avoid the "Failed to fetch" error.]
Now you will see a window like shown below,check the developer tools check box to select DDMS and development tools.click Next
android installation - ADT plugin
click Next and accept the terms and conditions and click Finish.
Download the android SDK for windows,Mac and linux and extract to a location and run SDK Setup.exe [ Location of this SDK setup is to be
After some moments android SDK and AVD manager will start and you will be prompted to select the packages you wish to install,select as per your needs but minimum you have to select one platform ex- android 2.2, android 2.1 etc
android installation- Step 3
Then click install selected
android installation- step 3
wait for the installation to complete.[Here I have selected SDK API,documentation,Platform and samples.
Android virtual device is the emulator that provides the virtual output for our applications.
In Android SDK and AVD Manager go to Virtual devices and select-> New
android virtual device setup
provide the name of the virtual device and select target to your installed platform.here I have installed android 2.2.If it can’t able to select the target then you didn’t installed anyandroid platform packages.
Leave the other settings as is [ This setting is used for emulator configuration] click create AVD and OK
android installation - step 4
Before starting to develop applications,you need to configure eclipse ADT plugin to properly work with SDK.
Open Eclipse IDE and click window then preferences and select Android in the left pane.
android installation configuring ADT plugin
Now click browse and select the path where the android SDK is extracted in step 3 clickapply and OK.If selected correctly the target name will be displayed in the window.If not selected the target name won’t be displayed.
The trouble some part is over.Now click file-> New->Project in Eclipse
Select Android->Android project
android installation step 5
Select
click finish.
Now the application is ready,Your Android project is now ready. Open the HelloAndroid.java file, located inside HelloAndroid > src > com.example.helloandroid
Change the code to
Select run->run->android application
The android emulator will show up.It will take some time for the dive to boot up for first time.
android helloworld app
android helloworld app
Finally Hello world application is executed on the AVD
.
Developer’s Link
http://developer.android.com/sdk/index.html
SOURCE: devlup.com
How to make Android apps