Android Workshop Lab
Android Workshop Lab
Ref : http://www.oracle.com/technetwork/java/javase/downloads/index.html
Android SDK
Ref : http://developer.android.com
Ref : http://www.eclipse.org/downloads
Java SDK
3
Eclipse IDE
4
Android SDK
5
Its time to setup the Environment
6
Configuring IDE for Android Development
7
Configuring IDE for Android Development
8
Configuring IDE for Android Development
9
Configuring IDE for Android Development
10
Configuring IDE for Android Development
Installation in progress
11
Integrating Android SDK with Eclipse
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
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
18
Gen Folder Structure
> 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
package com.google.android.helloactivity;
import android.app.Activity;
import android.os.Bundle;
24