Your SlideShare is downloading. ×
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Getting Started with Android Programming
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Getting Started with Android Programming

644

Published on

After completing this module, you should be able to: …

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

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
644
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 1Getting Started with Android Programming Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 2. Module ObjectivesAfter 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 program1-2 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 3. Architecture1-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 applicationsAndroid link: What is Android? 1-4 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 5. Architecture Overview1-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 EclipseAndroid 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 Development1-8 Copyright © 2012, Stacy David Thurston. All rights reserved.
  • 9. Application Development StepsAfter the environment is setup, create and run a Hello Worldapplication: • 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 ComponentsIn 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 DaveThis 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 Device1 - 13 Copyright © 2012, Stacy David Thurston. All rights reserved.

×