Your SlideShare is downloading. ×
0
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
A Lap Around Android Part 1
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

A Lap Around Android Part 1

1,064

Published on

A Lap Around Android I Presentation from SoCal Code Camp June 26 2010

A Lap Around Android I Presentation from SoCal Code Camp June 26 2010

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

No Downloads
Views
Total Views
1,064
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
25
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. A Lap Around Android I<br />Ben Monro<br />June 26, 2010<br />SoCalCodeCamp<br />
  • 2. Overview<br />Platform Overview<br />The Emulator &amp; DDMS<br />Hands on walk through <br />Activities<br />UI Components<br />Intents<br />Resources<br />Dialogs<br />Questions &amp; Answers<br />
  • 3. Android: The platform<br />
  • 4. Applications in Android<br />Written in Java<br />Bundled into APK packages that include:<br />Compiled Java code<br />Data, files &amp; other resources required for the application to install &amp; run<br />Runs in its own isolated process &amp; java VM.<br />Have a manifest file that defines the way the OS Launches &amp; interacts with the Application.<br />Components of an Android App:<br />Activities<br />Services<br />Broadcast Receivers<br />Content Providers – Activated by Content Resolver<br />Intents are Asynchronous system messages that tell the OS when/how to do something.<br />Activated by “Intents” <br />
  • 5. Activities<br />Activities are the core of Android App UIs. <br />Made up of Views &amp; View Groups (aka Layouts)<br />Examples of Views:<br />TextView / EditText<br />ListView / GridView<br />Gallery<br />Spinner<br />Button<br />ImageView<br />DatePicker<br />Layouts:<br />LinearLayout<br />RelativeLayout<br />TableLayout<br />AbsoluteLayout<br />Frame Layout<br />TabHost*<br />Can launch other Activities, Services &amp; Broadcast Events<br />Built using XML, code or Both<br />Supports Styles, Themes, Localization etc.<br />
  • 6. Android Services<br />Services are processes that run in the background. <br />Not much unlike a windows service.<br />Can be used to play music, communicate with a server, perform long running processes etc.<br />Typically used to trigger notifications in the status bar.<br />Communication (IPC) can be done using AIDL – Android Interface Definition Language.<br />
  • 7. Broadcast Receivers<br />Receive and react to broadcast announcements from the OS<br />No UI, but they may trigger an Activity<br />Examples:<br />Time-zone has changed<br />Battery is low<br />Picture has been taken <br />User has changed a system preference<br />
  • 8. Content Providers<br />Provide clean way for your application to expose its data to other applications on the device and visa versa.<br />Data can be stored in any way you want, Files, Preferences, SQL Lite DB or whatever other resource you need.<br />Content can be audio, video, images, contact information, etc.<br />
  • 9. Home Screen Widgets<br />A small “slice” of an application that runs on the application home screen.<br />Limited functionality &amp; set of Views/Layouts can be used.<br />Good for displaying things like stock tickers, status updates, weather forecasts, news headlines, etc.<br />Allows users to see a key piece of your app, without having to leave their home screen.<br />
  • 10. Killer Development Environment <br />What you’ll need to create Android Apps:<br />Java Development Kit (JDK) 6<br />Eclipse<br />Spring Tool Suite with Google (http://www.springsource.com/products/springsource-google-download)<br />Eclipse Classic 3.5 or greater will also work<br />Android SDK<br />Android Development Tools (ADT) – eclipse plug-in for Android development.<br />
  • 11. Creating an Android Project in Eclipse<br />File  New  Android Project<br />
  • 12. Project Structure<br /><ul><li>Source Code Directory
  • 13. UI Layout Directory (XML) – validated by compiler w/ detailed error messages
  • 14. Application Manifest – tells OS how to interact w/ your app.
  • 15. Icons / Graphics – can be bitmap or xml based
  • 16. Strings / Styles / Themes</li></li></ul><li>The Flow of an Activity<br />
  • 17. Demo time<br />Lets build a calculator!<br />
  • 18. Resources<br />Main Android Dev Site: http://developer.android.com<br />Stack overflow: http://stackoverflow.com/questions/tagged/android<br />Google I/O Talks:<br />http://www.youtube.com/googledevelopers<br />Tutorials &amp; Forums: <br />http://www.anddev.org/<br />http://www.androidpeople.com/<br />http://www.androidcentral.com/<br />Building Android Apps with Hudson &amp; Ant:<br />http://www.facebook.com/note.php?note_id=499519075367<br />
  • 19. Q&amp;A<br />Rate Me on SpeakerRate:<br />http://speakerrate.com/benmonro<br />

×