Slide 1

Slide 1 text

Getting started with Android Paresh Mayani

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Why Android? 48 billion Total android app installs @pareshmayani

Slide 7

Slide 7 text

Why Android? • We love and trust Google @pareshmayani

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Where Android? @pareshmayani

Slide 14

Slide 14 text

Where Android? @pareshmayani

Slide 15

Slide 15 text

Where Android? @pareshmayani

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

Where Android? :D @pareshmayani

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

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

Slide 26

Slide 26 text

@pareshmayani

Slide 27

Slide 27 text

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

Slide 28

Slide 28 text

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

Slide 29

Slide 29 text

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

Slide 30

Slide 30 text

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

Slide 31

Slide 31 text

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

Slide 32

Slide 32 text

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

Slide 33

Slide 33 text

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

Slide 34

Slide 34 text

Let’s setup Android IDE @pareshmayani

Slide 35

Slide 35 text

Which IDE to choose for development? @pareshmayani

Slide 36

Slide 36 text

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

Slide 37

Slide 37 text

Android Development Environment @pareshmayani

Slide 38

Slide 38 text

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

Slide 39

Slide 39 text

Eclipse UI Editor UI Elements UI View area @pareshmayani

Slide 40

Slide 40 text

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

Slide 41

Slide 41 text

Native Emulator !! @pareshmayani

Slide 42

Slide 42 text

Android Virtual Device (AVD) Manager @pareshmayani

Slide 43

Slide 43 text

Android Virtual Device (AVD) Manager @pareshmayani

Slide 44

Slide 44 text

Let’s create New AVD @pareshmayani

Slide 45

Slide 45 text

Rocket speed Emulator @pareshmayani

Slide 46

Slide 46 text

Android project structure @pareshmayani

Slide 47

Slide 47 text

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

Slide 48

Slide 48 text

Types of Widgets @pareshmayani

Slide 49

Slide 49 text

• Used to show captions or string values TextView @pareshmayani

Slide 50

Slide 50 text

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

Slide 51

Slide 51 text

@pareshmayani

Slide 52

Slide 52 text

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

Slide 53

Slide 53 text

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

Slide 54

Slide 54 text

@pareshmayani

Slide 55

Slide 55 text

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

Slide 56

Slide 56 text

@pareshmayani

Slide 57

Slide 57 text

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

Slide 58

Slide 58 text

@pareshmayani

Slide 59

Slide 59 text

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