Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with Android

Paresh Mayani
September 08, 2013

Getting started with Android

Let's get started with Android app development. This was presented at GDG Baroda, India.

Paresh Mayani

September 08, 2013
Tweet

More Decks by Paresh Mayani

Other Decks in Technology

Transcript

  1. Getting started with Android
    Paresh Mayani

    View Slide

  2. Android Developer
    Manager @ GDG Ahmedabad
    @pareshmayani
    www.TechnoTalkative.com
    www.GDGahmedabad.com

    View Slide

  3. What is Android?
    Why Android?
    Where Android?
    @pareshmayani

    View Slide

  4. Why Android?
    1.5 Million
    Android Device Activations Per Day
    @pareshmayani

    View Slide

  5. Why Android?
    900 Million
    Total Android device Activated http://goo.gl/EcszCg
    @pareshmayani

    View Slide

  6. Why Android?
    48 billion
    Total android app installs
    @pareshmayani

    View Slide

  7. Why Android?
    • We love and trust Google
    @pareshmayani

    View Slide

  8. Why Android?
    • We love and trust Google
    • Open Source
    @pareshmayani

    View Slide

  9. Why Android?
    • We love and trust Google
    • Open Source
    • Larger screen size (iPhone is Fixed
    size :D )
    @pareshmayani

    View Slide

  10. Why Android?
    • We love and trust Google
    • Open Source
    • Larger screen size (iPhone is Fixed
    size :D )
    • Google Play Store
    @pareshmayani

    View Slide

  11. Why Android?
    • We love and trust Google
    • Fastest growing OS
    • Open Source
    • Larger screen size (iPhone is Fixed
    size :D )
    • Google Play Store
    • Various Manufacturers
    @pareshmayani

    View Slide

  12. View Slide

  13. Where Android?
    @pareshmayani

    View Slide

  14. Where Android?
    @pareshmayani

    View Slide

  15. Where Android?
    @pareshmayani

    View Slide

  16. Where Android?
    http://goo.gl/s98Du
    Project Glass:
    @pareshmayani

    View Slide

  17. Where Android? :D
    @pareshmayani

    View Slide

  18. How to start with Android
    Development?
    http://goo.gl/iGkEF
    @pareshmayani

    View Slide

  19. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  20. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  21. Activities
    • Fundamental object of
    android app with lifecycle
    • Having UI
    • Interact with the user
    • One app can have Multiple
    activities
    • Must have 1 Main Activity
    @pareshmayani

    View Slide

  22. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  23. Views
    • Basic building block for UI
    components
    • Draws itself to the screen
    • Respond to Events
    @pareshmayani

    View Slide

  24. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  25. Intents
    • A simple message object that represents
    an "intention" to do something
    • Most significant use => launching of
    activities, where it can be thought of as
    the glue between activities.
    @pareshmayani

    View Slide

  26. @pareshmayani

    View Slide

  27. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  28. Services
    • can perform long-running
    operations in the
    background
    • Doesn’t Provide User
    Interface (UI)
    • Another application
    component can start a
    service and it will continue to
    run in the background even if
    the user switches to another
    application.
    @pareshmayani

    View Slide

  29. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  30. Content Providers
    • presents data to external applications
    • provide a level of abstraction for any data
    stored on the device that is accessible by
    multiple applications.
    @pareshmayani

    View Slide

  31. Android application - 3
    Activity 3.1
    Android application - 2
    Activity 2.1
    Activity 2.1
    Android application - 1
    Activity 1.1
    Activity 1.2
    Activity 1.3
    Content
    Provider - A
    XML Data
    File
    SQLite Remote
    @pareshmayani

    View Slide

  32. Building blocks of Android App
    Activities
    Views
    Services
    Content Providers
    Notifications
    Intents
    @pareshmayani

    View Slide

  33. Notifications
    • A Notification is a small
    icon that appears in the
    status bar.
    • Users can interact with this
    icon to receive information
    • For example: New SMS
    message, Missed call, New
    Mail
    @pareshmayani

    View Slide

  34. Let’s setup Android IDE
    @pareshmayani

    View Slide

  35. Which IDE to choose for development?
    @pareshmayani

    View Slide

  36. Android ADT Bundle
    Download the SDK
    ADT Bundle for Windows
    • ADT (Android Developer
    Tools) Bundle
    • With a single download, the
    ADT Bundle includes
    everything you need to begin
    developing apps:
    – Eclipse + ADT plug-in
    – Android SDK Tools
    – Android Platform-tools
    – The latest Android platform
    – The latest Android system
    image for the emulator
    @pareshmayani

    View Slide

  37. Android Development Environment
    @pareshmayani

    View Slide

  38. Eclipse IDE
    Package
    Structure of
    your Android app
    Source Code
    Problems/Erros and Console messages
    Program
    Elements
    @pareshmayani

    View Slide

  39. Eclipse UI Editor
    UI Elements
    UI View area
    @pareshmayani

    View Slide

  40. Where to execute Android programs?
    - Emulator or Real Device
    @pareshmayani

    View Slide

  41. Native Emulator !!
    @pareshmayani

    View Slide

  42. Android Virtual Device (AVD) Manager
    @pareshmayani

    View Slide

  43. Android Virtual Device (AVD) Manager
    @pareshmayani

    View Slide

  44. Let’s create New AVD
    @pareshmayani

    View Slide

  45. Rocket speed Emulator
    @pareshmayani

    View Slide

  46. Android project structure
    @pareshmayani

    View Slide

  47. Types of Layout
    Linear Layout
    Relative Layout
    Frame Layout
    Table Layout
    GridLayout
    @pareshmayani

    View Slide

  48. Types of Widgets
    @pareshmayani

    View Slide

  49. • Used to show captions or string values
    TextView
    @pareshmayani

    View Slide

  50. Button
    • It used to execute some task based on the button’s
    click/selection action.
    @pareshmayani

    View Slide

  51. @pareshmayani

    View Slide

  52. EditText
    • Used to accept some inputs from the user.
    @pareshmayani

    View Slide

  53. ImageView
    • Used to display image resources like logo, icon, etc.
    @pareshmayani

    View Slide

  54. @pareshmayani

    View Slide

  55. CheckBox
    • It’s for the selection of items.
    @pareshmayani

    View Slide

  56. @pareshmayani

    View Slide

  57. RadioButton
    • Its a two-states button that can be either checked or unchecked.
    @pareshmayani

    View Slide

  58. @pareshmayani

    View Slide

  59. Get in Touch
    @pareshmayani
    fb.com/GDGAhmedabad
    http://gplus.to/GDGAhmedabad
    www.TechnoTalkative.com
    gplus.to/paresh.mayani
    www.GDGahmedabad.com

    View Slide