SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
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.

Weitere ähnliche Inhalte

Ähnlich wie Getting Started Android Programming Guide

How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Android application development
Android application developmentAndroid application development
Android application developmentslidesuren
 
Introduction to android - SpringPeople
Introduction to android - SpringPeopleIntroduction to android - SpringPeople
Introduction to android - SpringPeopleSpringPeople
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app developmentAbhishekKumar4779
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101Michael 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 Javaamaankhan
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1Nikhil Kulkarni
 
Android studio
Android studioAndroid studio
Android studioAndri Yabu
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi androidsusijanny
 
Android app development
Android app developmentAndroid app development
Android app developmentAbhishek Saini
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfNomanKhan869872
 

Ähnlich wie Getting Started Android Programming Guide (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
 

Kürzlich hochgeladen

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 WorkerThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Kürzlich hochgeladen (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Getting Started Android Programming Guide

  • 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.