mobiletao android development 101

28
Mobile 101 - Android St. Joseph College, Montalban Rizal Sept 8, 2012 Rai Escarez @brainv

Upload: rai-escarez

Post on 08-Sep-2014

81 views

Category:

Technology


0 download

DESCRIPTION

My slides during the first mobileTAO Tech ReachOut at St. Joseph College of Montalban, September 8, 2012

TRANSCRIPT

Page 1: MobileTAO Android Development 101

Mobile 101 - Android

St. Joseph College, Montalban Rizal

Sept 8, 2012

Rai Escarez @brainv

Page 2: MobileTAO Android Development 101

What is Android?

• Android is a Linux-based operating system for mobile devices such as smartphones and tablet computers, developed by Google in conjunction with the Open Handset Alliance

• Large community of developers writing applications

• The world’s leading smartphone platform at the end of 2010

Page 3: MobileTAO Android Development 101

2012 Report

Page 4: MobileTAO Android Development 101

Android Versions

• v1.0 Beta (Nov 2007)• v1.5 Cupcake (Apr 2009)• v1.6 Donut (Sep 2009)• v2.0/2.1 Éclair (Oct 2009)• v2.2.x Froyo (May 2010)• v2.3.x Gingerbread (Dec 2010)• v3.x Honeycomb (Feb 2011)• v4.x Ice Cream Sandwich (Oct 2011)• v4.1.x Jelly Bean (Jun 2012)

Page 5: MobileTAO Android Development 101

mini-me

Page 6: MobileTAO Android Development 101

T_T

Page 7: MobileTAO Android Development 101

How to develop Android App?

Page 8: MobileTAO Android Development 101

Should have

• Basic Java Programming

• Know how to use a tool

Page 9: MobileTAO Android Development 101

Agenda

• Setup the Development Environment

• Create a "Hello World" Android Application

• Understand the various parts of an Android Project

• Use the Android Emulator

• Install and run the application on a physical device

• Create a simple User Interface

Page 10: MobileTAO Android Development 101

Setting Up the Development Environment

Page 11: MobileTAO Android Development 101

Download/Install Eclipse IDE

Page 12: MobileTAO Android Development 101

Make sure the correct one

Page 13: MobileTAO Android Development 101

Download/Install the SDK

Page 14: MobileTAO Android Development 101

Download/Install the Eclipse Plugin

• Click Help -> Install New Software .

• Click Add... button.

• Enter a name for the site into the Name field.

• Enter https://dl-ssl.google.com/android/eclipse/ into the Location field.

• Click the OK button.

• Click the checkbox next to Developer Tools.

• Click the Next button.

• Accept the terms, click Finish.

• Restart Eclipse.

Page 15: MobileTAO Android Development 101

Download/Install the SDK Platform Components

• Select the menu Window -> "Android SDK and AVD Manager", or click on the black phone shaped icon in the toolbar.

• Select Available Packages on the left hand side.

• Expand the Google Android site in the "Site, Packages, and Archives" Tree.

• Check the following items:• SDK Plaform Android 1.6, API 4 Revision 4

• Google APIs by Google Inc., Android API 4, Revision 4

• Click Install Selected.

• Accept the Terms for all packages and click Install Accepted.

Page 16: MobileTAO Android Development 101

We're now ready to develop our application.

Page 17: MobileTAO Android Development 101

Hello World Android Application

Demo

Page 18: MobileTAO Android Development 101

Name Getter Android Application

Demo

Page 19: MobileTAO Android Development 101

Map Android Application

Demo

Page 20: MobileTAO Android Development 101

You learned

• Create an Android Project• Calling another Activity• How to use simple event listener• Running, Debugging, and Causing

General Mayhem• Layout manipulation• Displaying an image• Map Application

Page 21: MobileTAO Android Development 101

Other useful things

• Take advance the Google API– Geocoding, Location-Based Service

• Using Hardware functionality– Camera

• Using Sensors– Compass– Accelerometer

• Etc.

Page 22: MobileTAO Android Development 101

Simple Tips

• Don’t memorize

• Use cheat sheets

• IDE should obey you

• Join local community

Page 23: MobileTAO Android Development 101

Google Android DevCamp 2012

Page 24: MobileTAO Android Development 101

Google Android DevCamp 2012

Page 25: MobileTAO Android Development 101

Google

Page 26: MobileTAO Android Development 101

http://www.abs-cbnnews.com/video/nation/metro-manila/07/27/12/mobile-app-measures-crowding-mrt-lrt

Page 27: MobileTAO Android Development 101
Page 28: MobileTAO Android Development 101

Question?

• Ask me on twitter @brainv