MobileTAO Android Development 101
-
Upload
rai-escarez -
Category
Technology
-
view
81 -
download
0
description
Transcript of MobileTAO Android Development 101
![Page 1: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/1.jpg)
Mobile 101 - Android
St. Joseph College, Montalban Rizal
Sept 8, 2012
Rai Escarez @brainv
![Page 2: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/2.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/3.jpg)
2012 Report
![Page 4: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/5.jpg)
mini-me
![Page 6: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/6.jpg)
T_T
![Page 7: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/7.jpg)
How to develop Android App?
![Page 8: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/8.jpg)
Should have
• Basic Java Programming
• Know how to use a tool
![Page 9: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/9.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/10.jpg)
Setting Up the Development Environment
![Page 11: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/11.jpg)
Download/Install Eclipse IDE
![Page 12: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/12.jpg)
Make sure the correct one
![Page 13: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/13.jpg)
Download/Install the SDK
![Page 14: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/14.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/15.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/16.jpg)
We're now ready to develop our application.
![Page 17: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/17.jpg)
Hello World Android Application
Demo
![Page 18: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/18.jpg)
Name Getter Android Application
Demo
![Page 19: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/19.jpg)
Map Android Application
Demo
![Page 20: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/20.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/21.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/22.jpg)
Simple Tips
• Don’t memorize
• Use cheat sheets
• IDE should obey you
• Join local community
![Page 23: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/23.jpg)
Google Android DevCamp 2012
![Page 24: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/24.jpg)
Google Android DevCamp 2012
![Page 25: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/25.jpg)
![Page 26: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/26.jpg)
http://www.abs-cbnnews.com/video/nation/metro-manila/07/27/12/mobile-app-measures-crowding-mrt-lrt
![Page 27: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/27.jpg)
![Page 28: MobileTAO Android Development 101](https://reader033.fdocuments.in/reader033/viewer/2022052521/540d86928d7f72747e8b4a28/html5/thumbnails/28.jpg)
Question?
• Ask me on twitter @brainv