You are on page 1of 10

Android'Operating'System'

Based&on&Linux&Operating&System&
Project&named:&Android&Open&Source&Project&(AOSP)&
&
Android'Development'Tools'
1.&Android&SDK&
! Android& Software& Development& Kit& (SDK)& are& tools& needed& to& create,&
compile&and&package&android&application.&
&
2.&Android&Developer&Tools&(ADT)&
! Based& on& Eclipse& IDE& to& provide& additional& functionalities& to& develop&
Android&applications.&
! ADT&are&a&set&of&plugins&to&Eclipse&with&Android&development&capabilities.&&
&
3.&Dalvik&Virtual&Machine&(DVM)&
! Android&system&uses&DVM&to&run&Java&based&applications.&
! Java&class&files&cant&be&run&on&Android&directly&unless&its&converted&to&the&
Dalvik&bytecode&format.&(All&are&done&automatically&by&ADT)&
&
Android'Application'
Primarily&written&in&Java&programming&language&
Packaged&android&application&has&an&extension&of&.apk&
&
Installation'
1. Installing'Android'ADT'
Google& has& provided& an& ADT& Bundle& which& can& be& downloaded& at:&
http://developer.android.com/sdk/index.html&
Available&for&Windows&OS,&Mac&OS&X&and&Linux.&
&
Bundle&includes:&
! Eclipse&IDE&
! Android&SDK&
! Android&Platform&tools&
! Android&platform&
&
&
2.&Updating'Android'SDK&
Launch&Eclipse&
Eclipse&will&prompt&to&select&a&workspace&
Set&your&workspace&path&to:&
&
D:\Android\StudentID&

&

Note:'Workspace'is'the'work'folder'for'your'projects.'Multiple'projects'can'
be'saved'into'the'same'workspace.'
The' selected' directory' is' where' all' your' android' projects' will' be' saved.' A'
developer'can'have'different'workspace'for'different'projects.'
&
! Click&Window&X>&Android&SDK&Manager&
&

&
&
&

&

&

Android&SDK&Manager&is&the&tool&to&download&the&latest&platform&or&keep&the&
current&platform&version&to&the&latest.&
&

&
The&basic&things&needed&from&the&SDK&Managers&are:&
&
i.
Android&SDK&Tools&
ii.
Android&SDK&PlatformXtools&
iii.
Android&SDK&BuildXtools&
iv.
Latest&Android&API&{Android&4.3&(API&18)&as&of&4/10/2013}&
&
&
Optional:&
Other& Android& API& version& as& not& all& android& phones& support& the& latest&
platform&version.&
&
Bonus&Info:&&
Currently& the& largest& platform& version& used& is& Android& 4.1(Jelly& Bean),& so&
downloading& the& Android& API& version& and& developing& this& as& the& target&
platform&would&suit&the&current&market.&

&

&
&
Note:'In'the'situation'where'Eclipse'IDE'starts'to'have'issues'after'updating'
your' Android' SDK' or' your' project' files' has' errors.' Updating' your' eclipse'
usually'will'resolve'the'issue.'
&
3.&Updating'Eclipse'IDE&
Launch&Eclipse&(if&you&have&not)&
&
Click&Help&X>&Check&for&Updates&
&

&
&
4.&Android'Virtual'Device'(AVD)&
Android& Virtual& Device& is& an& emulator,& which& is& used& to& simulate& your&
application& before& packaging& and& deploying& it& to& and& android& phone.&
&

&

&

Multiple&AVD&can&be&created&with&different&platform&version&and&screen&sizes,&
this&allows&the&user&to&test&their&application&layout&across&multiple&platform&
and&screen&sizes&to&maximize&compatibility.&
&
Launch&AVD&
&
Click&Window&X>&Android&Virtual&Device&Manager&
&

&

&

&&&&&

'
Creating'Your'First'Android'Project'
&
XCreating&a&new&Android&Project&by&using&the&Project&Wizard:&
! File&X>&New&X>&Project.&
&
! Select&&Android&Application&Project&
&

&

&
! Application&name:&MyFirstApp&
&

&

&
&

&

Running&an&Android&Application&
Simulating*your*project*on*AVD&
&
! Right*click*your*project*folder*:>*Run*As*:>*Android*Application&
*
&
&
&

You might also like