Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Why Android ?
Features of Android
Feature Description
Web browser
Android Applications
Android applications are usually developed in the Java language using the
Android SDK(Software Development Kit).
Android powers hundreds of millions of mobile devices in more than 190
countries around the world. It's the largest installed base of any mobile
platform and growing fast. Every day more than 1 million new Android devices
are activated worldwide
Once developed, Android applications can be packaged easily and sold out
either through a store such as Google Play,Opera Mobile Store,and the
Amazon Appstore.
3) The key employees of Android Incorporation are Andy Rubin, Rich Miner,
Chris White and Nick Sears.
4) Originally intended for camera but shifted to smart phones later because of
low market for camera only.
5) Android is the nick name of Andy Rubin given by co-workers because of his
love to robots.
On June 27, 2012, at the Google I/O conference, Google announced the 4.1
Jelly Bean. Jelly Bean is an incremental update, with the primary aim of
improving the user interface, both in terms of functionality and performance.
Android 2.3
Android 2.2.x 8 FROYO
Android 2.1.x 7 ECLAIR_MR1
Android 2.0.1 6 ECLAIR_0_1
Android 2.0 5 ECLAIR
Android 1.6 4 DONUT
Android 1.5 3 CUPCAKE
Android 1.1 2 BASE_1_1
Android 1.0 1 BASE
Architecture
Android operating system is a stack of software components which is roughly
divided into five sections and four main layers as shown below in the
architecture diagram.
Linux kernel
At the bottom of the layers is Linux. It is the heart of android architecture. This
provides a level of abstraction between the device hardware and it contains all
the essential hardware drivers like camera, keypad, display etc.
Libraries
On top of Linux kernel there is a set of libraries including open-source Web
browser engine WebKit, SQLite database which is a useful for storage and
sharing of application data, Media libraries to play and record audio and video,
FreeType for font support, SSL libraries responsible for Internet security etc.
Android Runtime
This is the third section of the architecture and available on the second layer
from the bottom. This section provides a key component called Dalvik Virtual
Machine which is a kind of Java Virtual Machine specially designed and
optimized for Android.
The Android runtime also provides a set of core libraries which enable to write
Android applications using standard Java programming language.
Application Framework
The Application Framework layer provides many higher-level services to
applications in the form of Java classes.
Applications
You will find all the Android application at the top layer. You will write your
application to be installed on this layer only. Examples of such applications are
Home, Settings, Contacts, Books, Browser, and Games etc.
Environment Setup
Android application development can be started on either of the following
operating systems
All the required tools to develop Android applications are freely available and
can be downloaded from the Web.
Android IDEs
Android Studio
Eclipse IDE
ADT Bundle
It is the simplest technique to install required softwares for android application
development. It includes:
Eclipse IDE
Android SDK
Eclipse Plugin
If you have downloaded the ADT bundle, unjar it, go to eclipse IDE and start
the eclipse by clicking on the eclipse icon.
Android Studio
As per Google official android development, they have launched android studio
as official Android IDE.
System Requirements
Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-bit).
Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
Linux
Installation
Launch Android Studio.exe, Make sure before launch Android Studio, Our
Machine should require installed Java JDK.
Once you launched Android Studio, its time to mention JDK5 path or later
version in android studio installer.
Check the components, which are required to create applications, below the
image have selected Android Studio, Android SDK, Android Virtual Machine
and performance(Intel chip).
Specify the path for Android studio and Android SDK
Specify the RAM space for Android emulator by default it would take 512MB of
RAM
At final stage, it would extract SDK packages, it would take a while time to
finish the task and would take 2626 MB of Hard disk space.
After done all above steps perfectly, you must get finish button and it gonna be
open android studio project with Welcome to android studio message as
shown below
Android Emulator
Android Emulator or Android Virtual Device is used to run, debug and test the
android application if you don't have the real device.
Let's see the compiling and packaging process from the source file:
The java compiler compiles the java source file into the class file.
The Dex compiler converts the class files into the .dex file that run on the
Dalvik VM. Multiple class files are converted into one dex file.
The Android Assets Packaging Tool (aapt) handles the packaging process.
Hello World Example
You can start your application development by calling Start a new Android
Studio project or by File -> New -> New Project ->
New installation frame should ask Application name, package information and
location of the project.
Specify Minimum SDK
Next, follow the instructions provided and keep all other entries as default till
the final step. Once your project is created successfully, you will have following
project screen:
Android studio installs the app on your AVD and starts it and if everything is
fine with your setup and application, it will display following Emulator window
−
Once you launched SDK manager, its time to install other required packages