Hi friends,
Google Android is booming platform on mobile and table device..,so, many armature or beginner programmer need to know that how to setup a android development enviroment(ADE) for that.
Best part of Android is that, one can setup ADE on any platform like Window, Mac or Linux or Unix. For ADE following chain toolkit are required
- JDK
- Android SDK
- Eclipse
- ADT
First you will need to download the Android SDK pack .zip archive, once downloaded find a suitable installation location on your machine and extract the zipped files.
Please note: This installation location will be referred to as $SDK_ROOT from now on through this tutorial
Alternatively you can add /tools to your root path which will prevent the need to specify the full path to the tools directory along with enabling you to run Android Debug Bridge (adb) along with other command line tools.
To add /tools:
To add /tools:
Linux
- Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable.
- Add the full path location to your $SDK_ROOT/tools location for the PATH variable.
- If no PATH line exists you can add the line by typing the following:
- export PATH=${PATH}:<path to your $SDK_ROOT/tools>
Mac OS X
- In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.
Windows
- Right click on the My Computer icon and select the properties tab.
- Select the Advanced tab and click the Environment Variables button.
- In the new dialog box dowble-click on Path (located under System Variables) and type in the full path location to the tools directory.
Android Eclipse Plugin (ADT)
If you choose to use the Eclipse IDE as your Android development environment you will have the opportunity to install and run a plug-in called Android Development Tools. ADT comes with a variety of powerful tools and extensions that will make creating, running and debugging your Android applications much easier and faster.In order to download and install ADT you will first need to configure an Eclipse remote update, this can achieved via the following steps:
- Start Eclipse, then select Help > Software Updates > Find and Install….
- In the dialog that appears, select Search for new features to install and press Next.
- Press New Remote Site.
- In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL: https://dl-ssl.google.com/android/eclipse/.
- Press OK.
- You should now see the new site added to the search list (and checked).
- Press Finish.
- In the subsequent Search Results dialog box, select the checkbox for Android Plugin >Eclipse Integration > Android Development Tools and press Next.
- Read the license agreement and then select Accept terms of the license agreement, if appropriate.
- Press Next.
- Press Finish.
- The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
- Restart Eclipse.
- After restart, update your Eclipse preferences to point to the SDK root directory ($SDK_ROOT):
Select Window > Preferences… to open the Preferences panel. (Mac OS X: Eclipse >Preferences)
Select Android from the left panel.
For the SDK Location in the main panel, press Browse... and find the SDK root directory. - Press Apply, then OK
Updating the ADT Plugin
To update the ADT plugin to the latest version, follow these steps:- Select Help > Software Updates > Find and Install….
- Select Search for updates of the currently installed features and press Finish.
- If any update for ADT is available, select and install.
- Select Help > Software Updates > Manage Configuration.
- Navigate down the tree and select Android Development Tools <version>
- Select Scan for Updates under Available Tasks.
How-To Use Eclipse To Develop Android Applications
In order to begin development on your Android applications you will first need to create a new Android project and then configure a launch configuration. Once completed you will have the capability to write, run and debug your Android creations.The following sections below will provide you with the necessary instructions to get you up and running with Android provided you have installed the ADT plugin (as previously mentioned) in your Eclipse environment.
For download you can take following links
No comments:
Post a Comment