Friday, August 2, 2013

Android Installation in Ubuntu


Follow the following Six steps to Install Android SDK:

Step 1: In Download Eclipse version 32/64 bit (verify your OS’s bit) HERE YOU DON’T NEED TO INSTALL ECLIPSE. Open the containing folder and double click the eclipse.

Step 2: Download Android SDK (.tgz file) , unpack it and locate it in safe place in your machine.

Step 3: Open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk. 


Step 4: Now in eclipse, Open
Help -> Install New Software -> Add
Name : <any name for sdk>
Location : https://dl-ssl.google.com/android/eclipse/
Then Click “OK”.  



Step 5: Select All Packages in BOX, Click next, again next, select radio button (Accept) and Click Finish button.
Some error will occur install SDK, Click OK Button.

Step 6: Window -> Preference -> Android -> click OK

Architecture of Android

Here you can understand two things :
  •         How Android works ?
  •         What are layers in Android OS ?
Figure: Architecture of Android

The Android OS is roughly divided into five sections in four main layers :
Red Layer :

Linux kernel:- This is the kernel on which Android is based. This layer contains all the low- level device drivers for the various hardware components of an Android device.
Green Layer :

 Libraries:- These contain all the code that provides the main features of an Android OS. For example, the SQLite library provides database support so that an application can use it for data storage. The WebKit library provides functionalities for web browsing.

Android runtime:- At the same layer as the libraries, the Android runtime provides a set of core libraries that enable developers to write Android apps using the Java programming language. The Android runtime also includes the Dalvik virtual machine, which enables every Android application to run in its own process, with its own instance of the Dalvik virtual machine (Android applications are compiled into the Dalvik executables). Dalvik is a specialized virtual machine designed specifically for Android and optimized for battery-powered mobile devices with limited memory and CPU.
Blue Layer :

Application framework:- Exposes the various capabilities of the Android OS to application developers so that they can make use of them in their applications.

Applications:- At this top layer, you will find applications that ship with the Android device (such as Phone, Contacts, Browser, etc.), as well as applications that you download and install from the Android Market. Any applications that you write are located at this layer.