Notes

275 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
275
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Notes

  1. 1. Comp194-MA
  2. 2. Introduction <ul><li>An android is a robot designed to look and act human. </li></ul><ul><li>For our purposes, Android is a software stack for mobile devices that includes an operating system, middleware and key applications. </li></ul><ul><li>The beta SDK provides tools to develop Android applications using Java. </li></ul>
  3. 3. Get It <ul><li>Download the official SDK at http:// code.google.com/android/download.html </li></ul><ul><li>Get the Eclipse ADT plugin by adding this site to available sites https://dl- ssl.google.com /android/eclipse/ </li></ul><ul><li>Note: Requires JDK 5/6 </li></ul>
  4. 4. Obligatory Hello World <ul><li>Create a new Android Project From Eclipse, select the File > New > Project menu item. </li></ul><ul><li>Fill out the project details and finish the creation wizard. </li></ul><ul><li>Test it out by running the new project – the Android emulator should start and then your app will run. </li></ul>
  5. 5. Under the hood <ul><li>Android applications are composed of four basic blocks: </li></ul><ul><ul><li>Activities </li></ul></ul><ul><ul><li>Broadcast Intent Receiver </li></ul></ul><ul><ul><li>Service </li></ul></ul><ul><ul><li>Content Provider </li></ul></ul><ul><li>Typical applications will use some combination of these four components. </li></ul>
  6. 6. Activities <ul><li>Activities are the most common Android component. </li></ul><ul><li>They are typically a single screen of an application and must extend the base “Activity” class. </li></ul><ul><li>Additionally, activities can pass values back and forth and are saved in a history stack. </li></ul>
  7. 7. Service/Content Provider <ul><li>A service is code that runs for awhile without a UI. </li></ul><ul><li>A content provider is a class that implements a standard set of methods to let other applications store and retrieve the type of data that is handled by that content provider. </li></ul>
  8. 8. Project <ul><li>A simple application that just displays some sort of text on the screen </li></ul>

×