SlideShare a Scribd company logo
1

Getting Started with Android Programming




       Copyright © 2012, Stacy David Thurston. All rights reserved.
Module Objectives

After completing this module, you should be able to:
 • List the Android architecture components
 • List developer environment components
 • Talk about the steps to develop and run an Android
     program




1-2          Copyright © 2012, Stacy David Thurston. All rights reserved.
Architecture




1-3   Copyright © 2012, Stacy David Thurston. All rights reserved.
Android

  Android is a software stack for mobile devices, phones, tablets:
   • Operating system
   • Middleware to run applications
   • Key applications




Android link: What is Android?

 1-4            Copyright © 2012, Stacy David Thurston. All rights reserved.
Architecture Overview




1-5   Copyright © 2012, Stacy David Thurston. All rights reserved.
Development Environment Components
   •   Android SDK Manager
       – To manager the download and install of SDK components
         and tools
   •   Android SDK platform versions
       – This course uses platform version 2.3.3
   •   Android Virtual Device (AVD) Manager
       – Set emulator configurations to model actual devices
   •   Android Virtual Device emulator
   •   Eclipse IDE
       – Android Development Tools (ADT) plugin for Eclipse



Android developer links: download, install, ...

 1-6            Copyright © 2012, Stacy David Thurston. All rights reserved.
Questions

 •    What are the main Android Architecture components?




 •    What software does a developer need to develop Android
      applications?




1-7            Copyright © 2012, Stacy David Thurston. All rights reserved.
Application Development




1-8   Copyright © 2012, Stacy David Thurston. All rights reserved.
Application Development Steps

After the environment is setup, create and run a Hello World
application:
 • Start Eclipse.
 • Create a New Project of type: Android Project:
      – Project name: HelloWorld1
      – Select the Build Target, example: Android 2.3.3
      – Set:
         —
             Package Name: com.tigerfarm.HelloWorld1
         —
             Create Activity: HelloWorld1Activity
 •    Ready to code.




1-9            Copyright © 2012, Stacy David Thurston. All rights reserved.
Application Components

In the Eclipse project:
 • Under resources values: string.xml
         – Example, app_name is the application name that shows up
           on the Android desktop.
         – Set app_name to Hello World.
  •      Under resources layout: main.xml
         – The form window layout and components.
  •      Under source: HelloWorld2Activity.java
         –   The application program code.




1 - 10            Copyright © 2012, Stacy David Thurston. All rights reserved.
Run Hello World

  In Eclipse, click the Run button.
   • Run as an Android
       Application.
   • The emulator starts.
   • The application is loaded in
       the emulator environment.
   • Once the emulator is started,
       it displays the time of day.
   • Click the menu button, and
       Hello World runs.


Android links: Hello World Tutorial

 1 - 11         Copyright © 2012, Stacy David Thurston. All rights reserved.
Sample Form: Hello Dave

This application has:
 • Under resources values: string.xml
         – It is a best practice to always have string values
           entered here.
  •      Under resources menu: amenu.xml
         – Menu items.
         – Note, the items have string ids verses hard code
           string values.
  •      Under resources layout: main.xml
         – Form definitions: buttons
  •      Under source: HelloDaveActivity.java
         –   The application program code.

1 - 12            Copyright © 2012, Stacy David Thurston. All rights reserved.
Running on an Actual Device




1 - 13   Copyright © 2012, Stacy David Thurston. All rights reserved.

More Related Content

Similar to Getting Started with Android Programming

How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
TOPS Technologies
 
Android application development
Android application developmentAndroid application development
Android application developmentslidesuren
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
Omolara Adejuwon
 
Introduction to android - SpringPeople
Introduction to android - SpringPeopleIntroduction to android - SpringPeople
Introduction to android - SpringPeople
SpringPeople
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
AbhishekKumar4779
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
vin123456gangal
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101
Michael Angelo Rivera
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
amaankhan
 
Android
AndroidAndroid
Android
BVP GTUG
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
Nikhil Kulkarni
 
Android studio
Android studioAndroid studio
Android studio
Andri Yabu
 
Android
AndroidAndroid
Android
Tapan Khilar
 
Android session 1
Android session 1Android session 1
Android session 1
Ahesanali Suthar
 
Android app development
Android app developmentAndroid app development
Android app development
Abhishek Saini
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
susijanny
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
Vibrant Technologies & Computers
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdf
NomanKhan869872
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
Aravindharamanan S
 
Android ppt
Android pptAndroid ppt

Similar to Getting Started with Android Programming (20)

How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Android application development
Android application developmentAndroid application development
Android application development
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Introduction to android - SpringPeople
Introduction to android - SpringPeopleIntroduction to android - SpringPeople
Introduction to android - SpringPeople
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Android
AndroidAndroid
Android
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
 
Android studio
Android studioAndroid studio
Android studio
 
Android
AndroidAndroid
Android
 
Android session 1
Android session 1Android session 1
Android session 1
 
Android app development
Android app developmentAndroid app development
Android app development
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdf
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android ppt
Android pptAndroid ppt
Android ppt
 

Recently uploaded

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 

Recently uploaded (20)

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 

Getting Started with Android Programming

  • 1. 1 Getting Started with Android Programming Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 2. Module Objectives After completing this module, you should be able to: • List the Android architecture components • List developer environment components • Talk about the steps to develop and run an Android program 1-2 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 3. Architecture 1-3 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 4. Android Android is a software stack for mobile devices, phones, tablets: • Operating system • Middleware to run applications • Key applications Android link: What is Android? 1-4 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 5. Architecture Overview 1-5 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 6. Development Environment Components • Android SDK Manager – To manager the download and install of SDK components and tools • Android SDK platform versions – This course uses platform version 2.3.3 • Android Virtual Device (AVD) Manager – Set emulator configurations to model actual devices • Android Virtual Device emulator • Eclipse IDE – Android Development Tools (ADT) plugin for Eclipse Android developer links: download, install, ... 1-6 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 7. Questions • What are the main Android Architecture components? • What software does a developer need to develop Android applications? 1-7 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 8. Application Development 1-8 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 9. Application Development Steps After the environment is setup, create and run a Hello World application: • Start Eclipse. • Create a New Project of type: Android Project: – Project name: HelloWorld1 – Select the Build Target, example: Android 2.3.3 – Set: — Package Name: com.tigerfarm.HelloWorld1 — Create Activity: HelloWorld1Activity • Ready to code. 1-9 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 10. Application Components In the Eclipse project: • Under resources values: string.xml – Example, app_name is the application name that shows up on the Android desktop. – Set app_name to Hello World. • Under resources layout: main.xml – The form window layout and components. • Under source: HelloWorld2Activity.java – The application program code. 1 - 10 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 11. Run Hello World In Eclipse, click the Run button. • Run as an Android Application. • The emulator starts. • The application is loaded in the emulator environment. • Once the emulator is started, it displays the time of day. • Click the menu button, and Hello World runs. Android links: Hello World Tutorial 1 - 11 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 12. Sample Form: Hello Dave This application has: • Under resources values: string.xml – It is a best practice to always have string values entered here. • Under resources menu: amenu.xml – Menu items. – Note, the items have string ids verses hard code string values. • Under resources layout: main.xml – Form definitions: buttons • Under source: HelloDaveActivity.java – The application program code. 1 - 12 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 13. Running on an Actual Device 1 - 13 Copyright © 2012, Stacy David Thurston. All rights reserved.