Android Development

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites & 1 Group

    Android Development - Presentation Transcript

      • Google Android Development
      • James Williams
      • BarCamp SD
      • What is Google Android?
      • Building blocks of an Android App
      • Demo
    1. 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
    2. Building Blocks
      • Activities
      • Intent
      • Permissions
      • Services
      • Content Providers
    3. Activity Life Cycle
    4. Views
      • Objects that know how to draw themselves on the screen
      • Equivalent to Java Swing components
      • Can layout in code or in XML
    5. 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>
    6. Intents
      • A declaration to the OS that you want to do something (pre-defined action)
        • VIEW (url, contact, pictures)
        • PICK
        • EDIT
        • DIAL
    7. 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
    8. 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
    9. Demo
    10. Resources
      • Android
        • http://www.android.com
      • Android Market
        • http://www.android.com/market
      • DroidDraw
        • Construct GUIs visually - http://www.droiddraw.org/
      • Twitter/FriendFeed: @ecspike

    + James WilliamsJames Williams, 2 years ago

    custom

    1468 views, 3 favs, 0 embeds more stats

    Intro to Android Development

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1468
      • 1468 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 215
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events