Advantages of Android
Setting up Environment for Android Development
Requirements
Java SDK > 1.6
Ref : [Link]
Android SDK
Ref : [Link]
Eclipse with ADT plug-in
Ref : [Link]
Java SDK
Download the recent version of Java SE
3
Eclipse IDE
Download Eclipse for
Java Developers
4
Android SDK
Download Android SDK for Windows
5
Its time to setup the Environment
Three Simple Steps:
> Install the Java SDK in your machine
> Install the Eclipse IDE in your machine
> Configure your Eclipse IDE for Android Development and
integrate you Android SDK to it
And That’s It!!! You are ready to go.
6
Configuring IDE for Android Development
Launch Eclipse and Click on Help Install New Software
7
Configuring IDE for Android Development
In the new Dialog Box that appears, Click on Add Button
8
Configuring IDE for Android Development
In the Location Textbox : [Link]
9
Configuring IDE for Android Development
Select all the Developer tools available and then follow
the installation process
10
Configuring IDE for Android Development
Installation in progress
11
Integrating Android SDK with Eclipse
Click on Window Preferences
12
Integrating Android SDK with Eclipse
Set the Android SDK location and Click OK
13
Android SDK
• Class Library
• Developer Tools
dx – Dalvik Cross-Assembler
aapt – Android Asset Packaging Tool
adb – Android Debug Bridge
ddms – Dalvik Debug Monitor Service
• Emulator and System Images
• Documentation and Sample Code
14
Now its time to get deeper into the Android Architecture
Copyright protected © Payoda Technologies 15
Moving Ahead
Now lets move into the project structure of an
Android Application
Shall We?
16
Project Structure
Version over
which the app
Project Name is built upon
Metadata File
17
Source Folder Structure
Source Folder
Package Name
Source Code Java
Files
18
Gen Folder Structure
Gen Folder Java Resource (R) file
> This is where code is generated for all the resources defined in your
res folder.
> This is how you can access layouts and controls defined within your
code.
19
Bin Folder Structure
Generated by Compiler
Contains all the .class
files to produce .apk file
20
Exploring Resource Folder
Images
UI Layouts
(Portrait and Landscape)
Constants
21
Android makes mobile Java easier
Well, sort of…
Android applications are written in Java
package [Link];
import [Link];
import [Link];
public class HelloActivity extends Activity {
public HelloActivity() {
}
@Override
public void onCreate(Bundle icicle) {
[Link](icicle);
setContentView([Link].hello_activity);
}
}
Thank You!!!
24