Your SlideShare is downloading. ×
Android Development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Android Development

4,056
views

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