Mobile 101 - Android
St. Joseph College, Montalban Rizal
Sept 8, 2012
Rai Escarez @brainv
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
2012 Report
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)
mini-me
T_T
How to develop Android App?
Should have
• Basic Java Programming
• Know how to use a tool
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
Setting Up the Development Environment
Download/Install Eclipse IDE
Make sure the correct one
Download/Install the SDK
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.
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.
We're now ready to develop our application.
Hello World Android Application
Demo
Name Getter Android Application
Demo
Map Android Application
Demo
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
Other useful things
• Take advance the Google API– Geocoding, Location-Based Service
• Using Hardware functionality– Camera
• Using Sensors– Compass– Accelerometer
• Etc.
Simple Tips
• Don’t memorize
• Use cheat sheets
• IDE should obey you
• Join local community
Google Android DevCamp 2012
Google Android DevCamp 2012
http://www.abs-cbnnews.com/video/nation/metro-manila/07/27/12/mobile-app-measures-crowding-mrt-lrt
Question?
• Ask me on twitter @brainv
Top Related