Android Development
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Android Development

on

  • 6,426 views

Intro to Android Development

Intro to Android Development

Statistics

Views

Total Views
6,426
Views on SlideShare
6,384
Embed Views
42

Actions

Likes
7
Downloads
488
Comments
0

5 Embeds 42

http://www.slideshare.net 27
https://www.linkedin.com 9
http://www.linkedin.com 4
http://www.lmodules.com 1
http://twintwo.ipg.pt 1

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Android Development Presentation 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