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

Android code lab @ GDG Indore

Android code lab @ GDG Indore

It was my first speaking engagement of the year 2013. It was actually an Android code lab organized by GDG Indore, India on 12th January 2013.

Paresh Mayani

January 12, 2013
Tweet

More Decks by Paresh Mayani

Other Decks in Technology

Transcript

  1. Who am I? :D Android & WP7 Developer @Digicorp Head,

    GDG Ahmedabad @pareshmayani www.TechnoTalkative.com
  2. Why Android? 68.1% Android Market Share world wide – Q3

    2012 http://www.huffingtonpost.com/2012/09/18/android-market-share-q3-2012_n_1893292.html
  3. Why Android? • We love and trust Google • Open

    Source • Larger screen size (iPhone is Fixed size :D ) • Google Play Store • Various Manufacturers
  4. 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
  5. Views • Basic building block for UI components • Draws

    itself to the screen • Respond to Events
  6. 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.
  7. 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.
  8. 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.
  9. 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
  10. 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
  11. How to Install Android? 1. Download and setup the Eclipse

    IDE http://eclipse.org/downloads/ 2. Download JDK & Install http://www.oracle.com/technetwork/java/javase/downloads/index.html 3. Download the Android SDK starter package http://developer.android.com/sdk/index.html 4. Android Development Tools (ADT) plug-in , download from within eclipse https://dl-ssl.google.com/android/eclipse/
  12. How to Install Android? 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
  13. Eclipse IDE Package Structure of your Android app Source Code

    Problems/Erros and Console messages Program Elements
  14. Button • It used to execute some task based on

    the button’s click/selection action.