SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
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.

Mais conteúdo relacionado

Semelhante a Getting Started with Android Programming

Android application development
Android application developmentAndroid application development
Android application development
slidesuren
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
Joe Jacob
 

Semelhante a 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 by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
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 ppt Android ppt
Android ppt
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

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.