SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
Android Application Development
Lecture 1(B): Getting Started
1. Developer Workflow
2. Introduction to Required Tools
3. Tools Download [SDK & IDE]
4. Setting up the Environment
5. Exploring the Tools
6. Getting Started: Hello World
7. Running a Project
8. Project Structure

Ahsanul Karim
karim.ahsanul@gmail.com
http://droidtraining.wordpress.com
Getting Started
1. Developer Workflow
2. Introduction to Required Tools
3. System Requirements
4. Tools Download [SDK & IDE]
5. Setting up the Environment
6. Exploring the Tools
7. Getting Started: Hello World
8. Running a Project
9. Project Structure

In This Session, We'll
Discuss...
Getting Started
Setup

Developer Workflow [1]
Install the Android SDK, Android
Development Tools, and Android
platforms.

Set up AVDs
and Devices
for Testing
Development

Set up your
Development
Environment

Create Android Virtual Devices
and Connect hardware devices
that will be used for testing

Create your
Application

Create an Android project with
your Source code, resources
and Android manifest file
Getting Started
Debugging
and Testing

Developer Workflow [2]

Build and Run
your
Application

Build and Run your application
in Debug mode

Debug your
Application

Debug your application using
the Android debugging and
logging tools

Test your
Application

Test your application using the
Android testing and
instrumentation framework
Getting Started
Publishing

Prepare your
Application
for Release

Release your
Application

Developer Workflow [3]
Configure, build and test your
application in release mode

Publicize, Sell and Distribute
your application to users
Introduction to Tools
[1]

Getting Started

1. Compiler: JDK 1.6+ [Java Development Kit]
2. IDE [Eclipse/IntelliJ IDEA]
3. Android SDK
4. ADT Plugin
Eclipse IDE

JDK

Android SDK

ADT Plugin
Getting Started

Introduction to Tools
[2]
Getting Started
Operating System
: 1. Windows
Windows XP (32-bit) Vista (32- or 64-bit), or
Windows 7 (32- or 64-bit)
2. Mac
Mac OS X 10.5.8 or later (x86 only)
3. Linux (tested on Ubuntu Linux, Lucid Lynx)
○ GNU C Library (glibc) 2.7 or later is
required.
○ On Ubuntu Linux, version 8.04 or later is
required.
○ 64-bit distributions must be capable of
running 32-bit applications.

System Requirements...
Eclipse :
Eclipse 3.6.2 (Helios) or
greater [Indigo will be
used]
Eclipse 3.5 (Galileo) no
longer supported with
the latest version of ADT.
Java :
JDK 6 (JRE alone is not
sufficient)
Getting Started

Introduction to Tools...
Eclipse IDE

Android SDK

ADT Plugin

ADT Bundle

JDK

intelliJ IDE

Plugin

Android SDK

Android Studio
Getting Started

Tools Download...

Java [JDK 6]:
Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Getting Started
ADT Bundle: [1]
Download: http://developer.android.com/sdk/index.html

Tools Download...
Getting Started
ADT Bundle: [2]
Choose appropriate version

Tools Download...
Getting Started
ADT Bundle: [3]
Check OS version [32 bit/64 bit] and Download

So we'll download and use 64bit version of ADT Bundle

Tools Download...
Getting Started

Tools Download...

Android Studio
Download: http://developer.android.com/sdk/installing/studio.html
Getting Started

Setting up Environment...

ADT Bundle
1. Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an
appropriate location, such as a "Development" directory.
2. Open the adt-bundle-<os_platform>/eclipse/ directory and launch eclipse.

Do not move any of the files or directories from the adt-bundle<os_platform> directory. If you move the eclipse or sdk directory,
ADT will not be able to locate the SDK and you'll need to manually
update the ADT preferences.
Getting Started
1. Android SDK
a. AVD Manager
b. SDK Manager
c. DDMS
d. Emulator
2. Eclipse
a. Java Perspective
b. DDMS Perspective

Exploring the Tools...
Getting Started

Kickstart...

Creating New Project: Hello World
Running a Project
Project Structure
Getting Started

Questions...

Judge a man by his questions rather than
his answers.
-Voltaire

Contenu connexe

En vedette

Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in Background
Ahsanul Karim
 
Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick Overview
Ahsanul Karim
 
Multiple Activity and Navigation Primer
Multiple Activity and Navigation PrimerMultiple Activity and Navigation Primer
Multiple Activity and Navigation Primer
Ahsanul Karim
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
Ahsanul Karim
 
Day 15: Content Provider: Using Contacts API
Day 15: Content Provider: Using Contacts APIDay 15: Content Provider: Using Contacts API
Day 15: Content Provider: Using Contacts API
Ahsanul Karim
 
Lecture 3 getting active through activities
Lecture 3 getting active through activities Lecture 3 getting active through activities
Lecture 3 getting active through activities
Ahsanul Karim
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting started
Ahsanul Karim
 

En vedette (15)

Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in Background
 
Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick Overview
 
Introduction to Android Development: Before Getting Started
Introduction to Android Development: Before Getting StartedIntroduction to Android Development: Before Getting Started
Introduction to Android Development: Before Getting Started
 
Multiple Activity and Navigation Primer
Multiple Activity and Navigation PrimerMultiple Activity and Navigation Primer
Multiple Activity and Navigation Primer
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
 
Lecture 5: Storage: Saving Data Database, Files & Preferences
Lecture 5: Storage: Saving Data Database, Files & PreferencesLecture 5: Storage: Saving Data Database, Files & Preferences
Lecture 5: Storage: Saving Data Database, Files & Preferences
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Day 15: Content Provider: Using Contacts API
Day 15: Content Provider: Using Contacts APIDay 15: Content Provider: Using Contacts API
Day 15: Content Provider: Using Contacts API
 
Mcq peresentation
Mcq  peresentationMcq  peresentation
Mcq peresentation
 
Lecture 3 getting active through activities
Lecture 3 getting active through activities Lecture 3 getting active through activities
Lecture 3 getting active through activities
 
Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_started
 
Client-Server
Client-ServerClient-Server
Client-Server
 
Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2
 
GCM for Android
GCM for AndroidGCM for Android
GCM for Android
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting started
 

Plus de Ahsanul Karim

Lecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting StartedLecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting Started
Ahsanul Karim
 
Day 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViewsDay 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViews
Ahsanul Karim
 
Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]
Ahsanul Karim
 
Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycle
Ahsanul Karim
 
Day 4: Android: UI Widgets
Day 4: Android: UI WidgetsDay 4: Android: UI Widgets
Day 4: Android: UI Widgets
Ahsanul Karim
 
Day 4: Android: Getting Active through Activities
Day 4: Android: Getting Active through ActivitiesDay 4: Android: Getting Active through Activities
Day 4: Android: Getting Active through Activities
Ahsanul Karim
 
Day 2 android internals a quick overview
Day 2 android internals a quick overviewDay 2 android internals a quick overview
Day 2 android internals a quick overview
Ahsanul Karim
 
Ui layout (incomplete)
Ui layout (incomplete)Ui layout (incomplete)
Ui layout (incomplete)
Ahsanul Karim
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
Ahsanul Karim
 

Plus de Ahsanul Karim (15)

Lecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting StartedLecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting Started
 
লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:লেকচার ১ (ক)- শুরুর আগে:
লেকচার ১ (ক)- শুরুর আগে:
 
Day 9: Make Your App Location Aware using Location API
Day 9: Make Your App Location Aware using Location APIDay 9: Make Your App Location Aware using Location API
Day 9: Make Your App Location Aware using Location API
 
Day 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViewsDay 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViews
 
Day 6: Android BroadcastReceiver Component
Day 6: Android BroadcastReceiver ComponentDay 6: Android BroadcastReceiver Component
Day 6: Android BroadcastReceiver Component
 
Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]
 
Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycle
 
Day 4: Android: UI Widgets
Day 4: Android: UI WidgetsDay 4: Android: UI Widgets
Day 4: Android: UI Widgets
 
Day 4: Android: Getting Active through Activities
Day 4: Android: Getting Active through ActivitiesDay 4: Android: Getting Active through Activities
Day 4: Android: Getting Active through Activities
 
Day 2 android internals a quick overview
Day 2 android internals a quick overviewDay 2 android internals a quick overview
Day 2 android internals a quick overview
 
Mobile Banking in Bangladesh: An Incomplete Study
Mobile Banking in Bangladesh: An Incomplete StudyMobile Banking in Bangladesh: An Incomplete Study
Mobile Banking in Bangladesh: An Incomplete Study
 
Ui layout (incomplete)
Ui layout (incomplete)Ui layout (incomplete)
Ui layout (incomplete)
 
AndroidManifest
AndroidManifestAndroidManifest
AndroidManifest
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
 
Action Bar Sherlock tutorial
Action Bar Sherlock tutorialAction Bar Sherlock tutorial
Action Bar Sherlock tutorial
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Dernier (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Lecture 1 Session 2 Getting Started

  • 1. Android Application Development Lecture 1(B): Getting Started 1. Developer Workflow 2. Introduction to Required Tools 3. Tools Download [SDK & IDE] 4. Setting up the Environment 5. Exploring the Tools 6. Getting Started: Hello World 7. Running a Project 8. Project Structure Ahsanul Karim karim.ahsanul@gmail.com http://droidtraining.wordpress.com
  • 2. Getting Started 1. Developer Workflow 2. Introduction to Required Tools 3. System Requirements 4. Tools Download [SDK & IDE] 5. Setting up the Environment 6. Exploring the Tools 7. Getting Started: Hello World 8. Running a Project 9. Project Structure In This Session, We'll Discuss...
  • 3. Getting Started Setup Developer Workflow [1] Install the Android SDK, Android Development Tools, and Android platforms. Set up AVDs and Devices for Testing Development Set up your Development Environment Create Android Virtual Devices and Connect hardware devices that will be used for testing Create your Application Create an Android project with your Source code, resources and Android manifest file
  • 4. Getting Started Debugging and Testing Developer Workflow [2] Build and Run your Application Build and Run your application in Debug mode Debug your Application Debug your application using the Android debugging and logging tools Test your Application Test your application using the Android testing and instrumentation framework
  • 5. Getting Started Publishing Prepare your Application for Release Release your Application Developer Workflow [3] Configure, build and test your application in release mode Publicize, Sell and Distribute your application to users
  • 6. Introduction to Tools [1] Getting Started 1. Compiler: JDK 1.6+ [Java Development Kit] 2. IDE [Eclipse/IntelliJ IDEA] 3. Android SDK 4. ADT Plugin Eclipse IDE JDK Android SDK ADT Plugin
  • 8. Getting Started Operating System : 1. Windows Windows XP (32-bit) Vista (32- or 64-bit), or Windows 7 (32- or 64-bit) 2. Mac Mac OS X 10.5.8 or later (x86 only) 3. Linux (tested on Ubuntu Linux, Lucid Lynx) ○ GNU C Library (glibc) 2.7 or later is required. ○ On Ubuntu Linux, version 8.04 or later is required. ○ 64-bit distributions must be capable of running 32-bit applications. System Requirements... Eclipse : Eclipse 3.6.2 (Helios) or greater [Indigo will be used] Eclipse 3.5 (Galileo) no longer supported with the latest version of ADT. Java : JDK 6 (JRE alone is not sufficient)
  • 9. Getting Started Introduction to Tools... Eclipse IDE Android SDK ADT Plugin ADT Bundle JDK intelliJ IDE Plugin Android SDK Android Studio
  • 10. Getting Started Tools Download... Java [JDK 6]: Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • 11. Getting Started ADT Bundle: [1] Download: http://developer.android.com/sdk/index.html Tools Download...
  • 12. Getting Started ADT Bundle: [2] Choose appropriate version Tools Download...
  • 13. Getting Started ADT Bundle: [3] Check OS version [32 bit/64 bit] and Download So we'll download and use 64bit version of ADT Bundle Tools Download...
  • 14. Getting Started Tools Download... Android Studio Download: http://developer.android.com/sdk/installing/studio.html
  • 15. Getting Started Setting up Environment... ADT Bundle 1. Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an appropriate location, such as a "Development" directory. 2. Open the adt-bundle-<os_platform>/eclipse/ directory and launch eclipse. Do not move any of the files or directories from the adt-bundle<os_platform> directory. If you move the eclipse or sdk directory, ADT will not be able to locate the SDK and you'll need to manually update the ADT preferences.
  • 16. Getting Started 1. Android SDK a. AVD Manager b. SDK Manager c. DDMS d. Emulator 2. Eclipse a. Java Perspective b. DDMS Perspective Exploring the Tools...
  • 17. Getting Started Kickstart... Creating New Project: Hello World Running a Project Project Structure
  • 18. Getting Started Questions... Judge a man by his questions rather than his answers. -Voltaire