Wednesday, 29 October 2014

Android Installation

Android Installation is a very simple but length. We need to download android SDK development kit. The Android software development kit (SDK) includes everything you need to start developing, testing, and debugging Android applications.
The Android APIs
Development Tools
The Android Emulator
Full Documentation
Sample Code 
Online Support
 
Before starting android application lets get to know about development of android.

Development of Android


The Android SDK includes all the tools and APIs you need to write compelling and powerful mobile applications. The biggest challenge with Android, as with any new development toolkit, is learning the features and limitations of its APIs.
If you have experience in Java development you’ll find that the techniques, syntax, and grammar you’ve been using will translate directly into Android, although some of the specific optimization techniques may seem counterintuitive.

If you don’t have experience with Java but have used other object-oriented languages (such as C#), you should find the transition straightforward. The power of Android comes from its APIs, not from Java, so being unfamiliar with all the Java-specific classes won’t be a big disadvantage.
Installing Android
  •  —What You Need to Begin
  •   —Because Android applications run within the Dalvik virtual machine, you can write them on any platform that supports the developer tools. This currently includes the following:
  •   —Microsoft Windows (XP or Vista)
  •   —Mac OS X 10.4.8 or later (Intel chips only)
  •   —Linux
  •   —To get started, you’ll need to download and install the following:
  •   —The Android SDK
  •   —Java Development Kit (JDK) 5 or 6
You can download the latest JDK from Sun at

Note; If you already have a JDK installed, make sure that it meets the version requirements listed above, and note that the Java runtime environment (JRE) is not sufficient.
Downloading and Installing the SDK

  

 Download  android-sdk_r10-windows.zip  file
  ZIP file containing the API libraries, developer tools, documentation, and several sample applications and API demos that highlight the use of particular API features. Install it by unzipping the SDK into a SDK in C drive.
 Downloading with eclipse

First Download Eclipse from  http://www.eclipse.org/downloads
Download  and Unzip this file in to your directory (C:\).

Double-click on the file c:\eclipse\eclipse.exe

Android Eclipse Plug-in (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.


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 plug-in 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 :
Select
Window > Preferences… to open the Preferences panel.
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
How Create Android virtual Device (AVD) 

You need to define a device which can be used for emulation. Press the device manager button, press "New" and maintain the following. 

Add this information
Press "Create AVD". This will create the device. To test if you setup is correct, select your device and press "Start"
Your AVD started..
 


 

No comments:

Post a Comment