Android Application Development
            Environment Setup




                                                   Ahsanul Karim
                                     ahsanul.karim@sentinelbd.com
Workshop: Day 1 Part 3                    Sentinel Solutions Ltd.
                                         http://www.sentinelbd.com
                                http://androidstream.wordpress.com
Setting up Development Environment
System Requirements
  Supported OS
  1. Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7
     (32- or 64-bit)
  2. Mac OS X 10.5.8 or later (x86 only)
  3. Linux (tested on Ubuntu Linux, Lucid Lynx)



  Supported Development Environment (Eclipse IDE based)
  1. Eclipse 3.4 (Ganymede) or greater/Eclipse Classic (versions
     3.5.1 and higher)
  2. JDK 1.5 or 1.6
  3. ADT Plugin
Setting up Development Environment(Contd.)
To set up the development environment, we need:
1. Java Development Kit (JDK 1.5+, 1.6 is preferable)
2. Eclipse IDE
3. Android SDK
Setting up Development Environment (Contd.)
     Android SDK    Link: http://developer.android.com/sdk/index.html




Download and Install the SDK starter package from the table above
                          (Highlighted)
Setting up Development Environment (Contd.)
      Android SDK Setup (3)
3. ADT Plugin for Eclipse

ADT Plugin:
Android Development Tools (ADT) is a plugin for the Eclipse IDE for

1.   extending the capabilities of Eclipse to set up new Android projects
2.   creating an application UI
3.    adding components based on the Android Framework API
4.    debugging your applications using the Android SDK tools
5.    exporting signed (or unsigned) APKs in order to distribute your application

         We’ll see the 5 points gradually during development
Setting up Development Environment (Contd.)
      Android SDK Setup (4)
4. Installing the ADT

 1. Start Eclipse, then select Help >
    Install New Software....
 2. Click Add, in the top-right
    corner.
 3. In the next window, you'll see a
    list of the tools to be
    downloaded. Click Next.
 4. Read and accept the license
    agreements, then click Finish.
 5. When the installation
    completes, restart Eclipse.
Setting up Development Environment (Contd.)
      Android SDK Setup (5)
5. Set SDK path

 1. Start Eclipse, then select
    Window > Preferences
 2. Browse and show the path of
    Android SDK.
 3. Press Apply and OK.




 Development Environment Setup is now completed!
Setting up Development Environment (Contd.)
In Our Lab (1)
Setting up Development Environment (Contd.)
In Our Lab (2)
First we install JDK




                       We have already done that
Setting up Development Environment (Contd.)
In Our Lab (3.1)
We’ll setup Eclipse Indigo
Stand-alone Eclipse: just decompress and run eclipse.exe




      You can create a shortcut in the desktop for eclipse.exe
Setting up Development Environment (Contd.)
In Our Lab (3.3)
We’ll setup Eclipse Indigo




                             Choose your WorkSpace
Setting up Development Environment (Contd.)
In Our Lab (3.5)
We’ll setup Eclipse Indigo
Setting up Development Environment (Contd.)
In Our Lab (3.6)
We’ll setup Eclipse Indigo




  We’ll become familiar to our new IDE gradually and I swear you’ll start loving it
Setting up Development Environment (Contd.)
In Our Lab (4.1)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.2)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.3)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.4)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.5)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.6)
We’ll setup ADT Plugin
Setting up Development Environment (Contd.)
In Our Lab (4.7)
We’ll setup ADT Plugin




              Adding ADT Pluging is DONE… You’ll now get a message
Setting up Development Environment (Contd.)
In Our Lab (5.1)
We’ll setup android SDK
 After restarting Eclipse we get:




                   Don’t forget to ask me about the red marks
Setting up Development Environment (Contd.)
In Our Lab (5.2)
We’ll setup android SDK
 SDK and AVD Manager: If we click on it:




         So, we have to set the location of Android SDK and show it to our IDE

         To do so….
Setting up Development Environment (Contd.)
In Our Lab (5.3)
We’ll setup android SDK
Setting up Development Environment (Contd.)
In Our Lab (5.4)
We’ll setup android SDK
Setting up Development Environment (Contd.)
In Our Lab (5.5)
We’ll setup android SDK
Setting up Development Environment (Contd.)
In Our Lab (5.6)
We’ll setup android SDK
Setting up Development Environment (Contd.)
In Our Lab (5.6)
We’ll setup DDMS




                   Now We are Ready
Let’s say “Hello” to the Android World!
Let’s Go Deep…
Created Project has the following structure

                                   Project Structure

                                   -Source (src)
                                   -Generated Class (gen)
                                   -Android 1.6 library
                                   -Assets (assets)
                                   -Resource(res)
                                     -drawable-hdpi
                                     -drawable-ldpi
                                     -drawable-mdpi
                                     -layout
                                     -values
                                   -AndroidMenifest.xml
                                   -default.properties
Let’s Go Deep… (Contd.)
To run the app in emulator, we have to do the following steps:

1. Create AVD (Android Virtual Device)
2. Create Run Configuration
3. Run the Application

To run the app in device, we have to do the following steps:

1.   Install device driver
2.   Connect device through USB
3.   Create Run Configuration
4.   Run the Application

           We’ll run the app in emulator for now
Let’s Go Deep… (Contd.)
1. Create AVD (Android Virtual Device)
Use Android SDK & AVD Manager to create AVD
Let’s Go Deep… (Contd.)
2. Create Run Configuration




 1. Create a Run
    Configuration
 2. Browse and select
    the project to run
Let’s Go Deep… (Contd.)
3. Select AVD & Run




                 Click Run to start AVD/emulator
Let’s Go Deep… (Contd.)
Result in Emulator




                     Now its time to analyze how it works
Project Structure…
Created Project has the following structure

                                   Project Structure

                                   -Source (src)
                                   -Generated Class (gen)
                                   -Android 1.6 library
                                   -Assets (assets)
                                   -Resource(res)
                                     -drawable-hdpi
                                     -drawable-ldpi
                                     -drawable-mdpi
                                     -layout
                                     -values
                                   -AndroidMenifest.xml
                                   -default.properties
Project Structure (Contd.)
-Source (src)
We have used only one class here which is an Activity named HalloActivity. We’ll
describe about Activity in detail with lifecycle shortly. For now we can consider
Activity as Android analogue for the window or dialog in a desktop application. It
can load view from xml layout (here main.xml under res/layout folder)




                                                    In the HelloActivity class the view
                                                    of the Activity is set from main.xml
                                                    given below
Project Structure (Contd.)
-res/layout/main.xml
 1. UI Layout can be defined from source code using View or by layout xmls.
 2. The layout xml can be generated by visual tool given by ADT
Project Structure (Contd.)
-res/drawable
 1. From Android 1.6 to support different screen sizes and screen densities graphic files
    are kept in 3 different folders drawable-hdpi, drawable-ldpi and drawable-mdpi
 2. In our current project, they contain only default icon file with different dimensions
    to support devices with different screen resolution.
-assets
 Holds other static files you wish packaged with the application for deployment
 onto the device. In this project, we have none
 -gen/R.java                                 -values/strings.xml
Project Structure (Contd.)
-AndroidMenifest.xml




  XML file describing the application being built and what components –
  activities, services, etc. – are being supplied by that application

More Related Content

PPTX
Day 15: Working in Background
PDF
Training android
PPT
Android User Interface: Basic Form Widgets
PPT
Day: 2 Environment Setup for Android Application Development
PDF
Sensors in Android (old)
PPT
Multiple Activity and Navigation Primer
PPT
Day 4: Android: UI Widgets
PDF
Marakana Android User Interface
Day 15: Working in Background
Training android
Android User Interface: Basic Form Widgets
Day: 2 Environment Setup for Android Application Development
Sensors in Android (old)
Multiple Activity and Navigation Primer
Day 4: Android: UI Widgets
Marakana Android User Interface

What's hot (19)

PPTX
Android Services
PPTX
Android MapView and MapActivity
PPT
Day 3: Getting Active Through Activities
PPTX
Android UI
PPTX
Android Tutorials : Basic widgets
PPT
Londroid Android Home Screen Widgets
PPTX
Android Application Component: BroadcastReceiver Tutorial
PDF
Lecture 2(b) Android Internals A Quick Overview
PDF
Lecture 3 getting active through activities
PDF
Android session 1
PDF
Android session 2
PDF
Android session 3
PPT
Day 4: Android: Getting Active through Activities
PDF
Lecture 1 Session 1 Before Getting Started
PDF
AndroidManifest
PDF
Day 8: Dealing with Lists and ListViews
PPT
android layouts
PPTX
PPTX
Android Fundamental
Android Services
Android MapView and MapActivity
Day 3: Getting Active Through Activities
Android UI
Android Tutorials : Basic widgets
Londroid Android Home Screen Widgets
Android Application Component: BroadcastReceiver Tutorial
Lecture 2(b) Android Internals A Quick Overview
Lecture 3 getting active through activities
Android session 1
Android session 2
Android session 3
Day 4: Android: Getting Active through Activities
Lecture 1 Session 1 Before Getting Started
AndroidManifest
Day 8: Dealing with Lists and ListViews
android layouts
Android Fundamental
Ad

Viewers also liked (17)

PPTX
Android 1.8 sensor
PDF
List Views
PDF
Day 2 android internals a quick overview
PPT
Day 6: Android BroadcastReceiver Component
PPTX
Creating the first app with android studio
PPTX
Action Bar Sherlock tutorial
PPTX
Day 9: Make Your App Location Aware using Location API
PPTX
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
PPT
Day 5: Android User Interface [View Widgets]
PPTX
Day: 1 Introduction to Mobile Application Development (in Android)
PPTX
Android GPS Tutorial
PDF
GCM for Android
PPTX
Android Workshop Day 1 Part 2
PPTX
Android before getting started
PDF
Day1 before getting_started
PPTX
Mcq peresentation
PPTX
Client-Server
Android 1.8 sensor
List Views
Day 2 android internals a quick overview
Day 6: Android BroadcastReceiver Component
Creating the first app with android studio
Action Bar Sherlock tutorial
Day 9: Make Your App Location Aware using Location API
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Day 5: Android User Interface [View Widgets]
Day: 1 Introduction to Mobile Application Development (in Android)
Android GPS Tutorial
GCM for Android
Android Workshop Day 1 Part 2
Android before getting started
Day1 before getting_started
Mcq peresentation
Client-Server
Ad

Similar to Android Workshop: Day 1 Part 3 (20)

PDF
ANDROID PPT 1.pdf
PDF
01 04 - android set up and creating an android project
PPTX
Android
PPTX
Android Basic
PDF
Android Development
PDF
Android application development
PPTX
Android installation guide
PPT
Industrial Training in Android Application
PDF
[Android] Introduction to Android Programming
PPT
Android activity, service, and broadcast recievers
PPTX
Android
PPTX
Android the first app - hello world - copy
PPT
Getting started with android dev and test perspective
PPTX
Android development orientation for starters v2
PPTX
Android styles and themes
PPT
Android
PDF
Android Bootcamp
KEY
Android momobxl
PPTX
Android software development – the first few hours
PDF
Android Development - Process & Tools
ANDROID PPT 1.pdf
01 04 - android set up and creating an android project
Android
Android Basic
Android Development
Android application development
Android installation guide
Industrial Training in Android Application
[Android] Introduction to Android Programming
Android activity, service, and broadcast recievers
Android
Android the first app - hello world - copy
Getting started with android dev and test perspective
Android development orientation for starters v2
Android styles and themes
Android
Android Bootcamp
Android momobxl
Android software development – the first few hours
Android Development - Process & Tools

More from Ahsanul Karim (9)

PDF
Lecture 5: Storage: Saving Data Database, Files & Preferences
PDF
লেকচার ১ (ক)- শুরুর আগে:
PPTX
Day 15: Content Provider: Using Contacts API
PDF
Day 8: Dealing with Lists and ListViews
DOC
Day 4: Activity lifecycle
PDF
Day 1 Android: Before Getting Started
PDF
Mobile Banking in Bangladesh: An Incomplete Study
PDF
Ui layout (incomplete)
PPTX
Introduction to Android Development: Before Getting Started
Lecture 5: Storage: Saving Data Database, Files & Preferences
লেকচার ১ (ক)- শুরুর আগে:
Day 15: Content Provider: Using Contacts API
Day 8: Dealing with Lists and ListViews
Day 4: Activity lifecycle
Day 1 Android: Before Getting Started
Mobile Banking in Bangladesh: An Incomplete Study
Ui layout (incomplete)
Introduction to Android Development: Before Getting Started

Recently uploaded (20)

PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PPT
hemostasis and its significance, physiology
PDF
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
PDF
Unleashing the Potential of the Cultural and creative industries
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PDF
POM_Unit1_Notes.pdf Introduction to Management #mba #bba #bcom #bballb #class...
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PDF
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PPTX
Thinking Routines and Learning Engagements.pptx
PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PDF
African Communication Research: A review
PPTX
operating_systems_presentations_delhi_nc
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PPTX
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
PDF
anganwadi services for the b.sc nursing and GNM
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PPSX
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
PPTX
2025 High Blood Pressure Guideline Slide Set.pptx
Diabetes Mellitus , types , clinical picture, investigation and managment
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
hemostasis and its significance, physiology
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
Unleashing the Potential of the Cultural and creative industries
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
POM_Unit1_Notes.pdf Introduction to Management #mba #bba #bcom #bballb #class...
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
MMW-CHAPTER-1-final.pptx major Elementary Education
Thinking Routines and Learning Engagements.pptx
Laparoscopic Imaging Systems at World Laparoscopy Hospital
African Communication Research: A review
operating_systems_presentations_delhi_nc
FAMILY PLANNING (preventative and social medicine pdf)
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
anganwadi services for the b.sc nursing and GNM
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
2025 High Blood Pressure Guideline Slide Set.pptx

Android Workshop: Day 1 Part 3

  • 1. Android Application Development Environment Setup Ahsanul Karim [email protected] Workshop: Day 1 Part 3 Sentinel Solutions Ltd. http://www.sentinelbd.com http://androidstream.wordpress.com
  • 2. Setting up Development Environment System Requirements Supported OS 1. Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit) 2. Mac OS X 10.5.8 or later (x86 only) 3. Linux (tested on Ubuntu Linux, Lucid Lynx) Supported Development Environment (Eclipse IDE based) 1. Eclipse 3.4 (Ganymede) or greater/Eclipse Classic (versions 3.5.1 and higher) 2. JDK 1.5 or 1.6 3. ADT Plugin
  • 3. Setting up Development Environment(Contd.) To set up the development environment, we need: 1. Java Development Kit (JDK 1.5+, 1.6 is preferable) 2. Eclipse IDE 3. Android SDK
  • 4. Setting up Development Environment (Contd.) Android SDK Link: http://developer.android.com/sdk/index.html Download and Install the SDK starter package from the table above (Highlighted)
  • 5. Setting up Development Environment (Contd.) Android SDK Setup (3) 3. ADT Plugin for Eclipse ADT Plugin: Android Development Tools (ADT) is a plugin for the Eclipse IDE for 1. extending the capabilities of Eclipse to set up new Android projects 2. creating an application UI 3. adding components based on the Android Framework API 4. debugging your applications using the Android SDK tools 5. exporting signed (or unsigned) APKs in order to distribute your application We’ll see the 5 points gradually during development
  • 6. Setting up Development Environment (Contd.) Android SDK Setup (4) 4. Installing the ADT 1. Start Eclipse, then select Help > Install New Software.... 2. Click Add, in the top-right corner. 3. In the next window, you'll see a list of the tools to be downloaded. Click Next. 4. Read and accept the license agreements, then click Finish. 5. When the installation completes, restart Eclipse.
  • 7. Setting up Development Environment (Contd.) Android SDK Setup (5) 5. Set SDK path 1. Start Eclipse, then select Window > Preferences 2. Browse and show the path of Android SDK. 3. Press Apply and OK. Development Environment Setup is now completed!
  • 8. Setting up Development Environment (Contd.) In Our Lab (1)
  • 9. Setting up Development Environment (Contd.) In Our Lab (2) First we install JDK We have already done that
  • 10. Setting up Development Environment (Contd.) In Our Lab (3.1) We’ll setup Eclipse Indigo Stand-alone Eclipse: just decompress and run eclipse.exe You can create a shortcut in the desktop for eclipse.exe
  • 11. Setting up Development Environment (Contd.) In Our Lab (3.3) We’ll setup Eclipse Indigo Choose your WorkSpace
  • 12. Setting up Development Environment (Contd.) In Our Lab (3.5) We’ll setup Eclipse Indigo
  • 13. Setting up Development Environment (Contd.) In Our Lab (3.6) We’ll setup Eclipse Indigo We’ll become familiar to our new IDE gradually and I swear you’ll start loving it
  • 14. Setting up Development Environment (Contd.) In Our Lab (4.1) We’ll setup ADT Plugin
  • 15. Setting up Development Environment (Contd.) In Our Lab (4.2) We’ll setup ADT Plugin
  • 16. Setting up Development Environment (Contd.) In Our Lab (4.3) We’ll setup ADT Plugin
  • 17. Setting up Development Environment (Contd.) In Our Lab (4.4) We’ll setup ADT Plugin
  • 18. Setting up Development Environment (Contd.) In Our Lab (4.5) We’ll setup ADT Plugin
  • 19. Setting up Development Environment (Contd.) In Our Lab (4.6) We’ll setup ADT Plugin
  • 20. Setting up Development Environment (Contd.) In Our Lab (4.7) We’ll setup ADT Plugin Adding ADT Pluging is DONE… You’ll now get a message
  • 21. Setting up Development Environment (Contd.) In Our Lab (5.1) We’ll setup android SDK After restarting Eclipse we get: Don’t forget to ask me about the red marks
  • 22. Setting up Development Environment (Contd.) In Our Lab (5.2) We’ll setup android SDK SDK and AVD Manager: If we click on it: So, we have to set the location of Android SDK and show it to our IDE To do so….
  • 23. Setting up Development Environment (Contd.) In Our Lab (5.3) We’ll setup android SDK
  • 24. Setting up Development Environment (Contd.) In Our Lab (5.4) We’ll setup android SDK
  • 25. Setting up Development Environment (Contd.) In Our Lab (5.5) We’ll setup android SDK
  • 26. Setting up Development Environment (Contd.) In Our Lab (5.6) We’ll setup android SDK
  • 27. Setting up Development Environment (Contd.) In Our Lab (5.6) We’ll setup DDMS Now We are Ready
  • 28. Let’s say “Hello” to the Android World!
  • 29. Let’s Go Deep… Created Project has the following structure Project Structure -Source (src) -Generated Class (gen) -Android 1.6 library -Assets (assets) -Resource(res) -drawable-hdpi -drawable-ldpi -drawable-mdpi -layout -values -AndroidMenifest.xml -default.properties
  • 30. Let’s Go Deep… (Contd.) To run the app in emulator, we have to do the following steps: 1. Create AVD (Android Virtual Device) 2. Create Run Configuration 3. Run the Application To run the app in device, we have to do the following steps: 1. Install device driver 2. Connect device through USB 3. Create Run Configuration 4. Run the Application We’ll run the app in emulator for now
  • 31. Let’s Go Deep… (Contd.) 1. Create AVD (Android Virtual Device) Use Android SDK & AVD Manager to create AVD
  • 32. Let’s Go Deep… (Contd.) 2. Create Run Configuration 1. Create a Run Configuration 2. Browse and select the project to run
  • 33. Let’s Go Deep… (Contd.) 3. Select AVD & Run Click Run to start AVD/emulator
  • 34. Let’s Go Deep… (Contd.) Result in Emulator Now its time to analyze how it works
  • 35. Project Structure… Created Project has the following structure Project Structure -Source (src) -Generated Class (gen) -Android 1.6 library -Assets (assets) -Resource(res) -drawable-hdpi -drawable-ldpi -drawable-mdpi -layout -values -AndroidMenifest.xml -default.properties
  • 36. Project Structure (Contd.) -Source (src) We have used only one class here which is an Activity named HalloActivity. We’ll describe about Activity in detail with lifecycle shortly. For now we can consider Activity as Android analogue for the window or dialog in a desktop application. It can load view from xml layout (here main.xml under res/layout folder) In the HelloActivity class the view of the Activity is set from main.xml given below
  • 37. Project Structure (Contd.) -res/layout/main.xml 1. UI Layout can be defined from source code using View or by layout xmls. 2. The layout xml can be generated by visual tool given by ADT
  • 38. Project Structure (Contd.) -res/drawable 1. From Android 1.6 to support different screen sizes and screen densities graphic files are kept in 3 different folders drawable-hdpi, drawable-ldpi and drawable-mdpi 2. In our current project, they contain only default icon file with different dimensions to support devices with different screen resolution. -assets Holds other static files you wish packaged with the application for deployment onto the device. In this project, we have none -gen/R.java -values/strings.xml
  • 39. Project Structure (Contd.) -AndroidMenifest.xml XML file describing the application being built and what components – activities, services, etc. – are being supplied by that application