Your SlideShare is downloading. ×
0
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
Android Development
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

Android Development

4,092

Published on

Intro to Android Development

Intro to Android Development

Published in: Technology, Art & Photos
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,092
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
489
Comments
0
Likes
7
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. <ul><li>Google Android Development </li></ul><ul><li>James Williams </li></ul><ul><li>BarCamp SD </li></ul>
  • 2. <ul><li>What is Google Android? </li></ul><ul><li>Building blocks of an Android App </li></ul><ul><li>Demo </li></ul>
  • 3. What is Android? <ul><li>Software stack for mobile devices (based on Linux) </li></ul><ul><li>Uses Java source code for applications* </li></ul><ul><li>All features of the hardware are accessible to the developer </li></ul><ul><li>First device is T-Mobile G1, others due next year </li></ul>
  • 4. Building Blocks <ul><li>Activities </li></ul><ul><li>Intent </li></ul><ul><li>Permissions </li></ul><ul><li>Services </li></ul><ul><li>Content Providers </li></ul>
  • 5. Activity Life Cycle
  • 6. Views <ul><li>Objects that know how to draw themselves on the screen </li></ul><ul><li>Equivalent to Java Swing components </li></ul><ul><li>Can layout in code or in XML </li></ul>
  • 7. Sample Layout <ul><li>&lt;LinearLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot; </li></ul><ul><li>android:layout_width=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:layout_height=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:orientation=&amp;quot;vertical&amp;quot; </li></ul><ul><li>android:paddingLeft=&amp;quot;6dip&amp;quot; </li></ul><ul><li>android:paddingRight=&amp;quot;6dip&amp;quot; </li></ul><ul><li>android:paddingBottom=&amp;quot;3dip&amp;quot;&gt; </li></ul><ul><li>&lt;EditText android:id=&amp;quot;@+id/title&amp;quot; </li></ul><ul><li>android:maxLines=&amp;quot;1&amp;quot; </li></ul><ul><li>android:layout_marginTop=&amp;quot;2dip&amp;quot; </li></ul><ul><li>android:layout_width=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:ems=&amp;quot;25&amp;quot; </li></ul><ul><li>android:layout_height=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:autoText=&amp;quot;true&amp;quot; </li></ul><ul><li>android:capitalize=&amp;quot;sentences&amp;quot; </li></ul><ul><li>android:scrollHorizontally=&amp;quot;true&amp;quot; /&gt; </li></ul><ul><li>&lt;Button android:id=&amp;quot;@+id/ok&amp;quot; </li></ul><ul><li>android:layout_width=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:layout_height=&amp;quot;wrap_content&amp;quot; </li></ul><ul><li>android:layout_gravity=&amp;quot;right&amp;quot; </li></ul><ul><li>android:text=&amp;quot;@string/button_ok&amp;quot; /&gt; </li></ul><ul><li>&lt;/LinearLayout&gt; </li></ul>
  • 8. Intents <ul><li>A declaration to the OS that you want to do something (pre-defined action) </li></ul><ul><ul><li>VIEW (url, contact, pictures) </li></ul></ul><ul><ul><li>PICK </li></ul></ul><ul><ul><li>EDIT </li></ul></ul><ul><ul><li>DIAL </li></ul></ul>
  • 9. Permissions <ul><li>Provide low-level access to features (like SMS, GPS, Internet, etc) </li></ul><ul><li>Declared by the dev at creation time </li></ul><ul><li>Users are prompted by Android Market when installing the app </li></ul>
  • 10. Android Market (Beta) <ul><li>$25 per developer/entity for unlimited apps </li></ul><ul><li>Only free apps for the moment </li></ul><ul><li>Upgrades aren&apos;t seamless </li></ul><ul><li>Paid app alternatives </li></ul><ul><ul><li>Only Android: http://onlyandroid.mobihand.com/ </li></ul></ul><ul><ul><li>Handago: http://www.handango.com </li></ul></ul>
  • 11. Demo
  • 12. Resources <ul><li>Android </li></ul><ul><ul><li>http://www.android.com </li></ul></ul><ul><li>Android Market </li></ul><ul><ul><li>http://www.android.com/market </li></ul></ul><ul><li>DroidDraw </li></ul><ul><ul><li>Construct GUIs visually - http://www.droiddraw.org/ </li></ul></ul><ul><li>Twitter/FriendFeed: @ecspike </li></ul>

×