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

MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
Krashi Coaching
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
Alexander Litvinenko
 

Dernier (20)

MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 

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