part 1 robot in the making

39
February 19, 2011 @ De La Salle University - Dasmariñas Part 1: Robot in the Making Mike Rivera - Señior Android Developer @ Excitor Asia

Upload: michael-angelo-rivera

Post on 28-Jan-2015

107 views

Category:

Technology


0 download

DESCRIPTION

Introduction to Android

TRANSCRIPT

Page 1: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Part 1: Robot in the MakingMike Rivera - Señior Android Developer @ Excitor Asia

Page 2: Part 1 robot in the making

Agenda

✤ What is a Smartphone?

✤ What is Android ?

✤ History of Android

✤ Features of Android

✤ The Android Architecture

✤ The Android Market

✤ Pros and Cons of Android OS

✤ The Future of Android

Page 3: Part 1 robot in the making

“I have always wished that my computer would be as easy to

use as my telephone.My wish has come true.

I no longer know how to use my telephone.”

Page 4: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

SmartphonesAre simply intelligent and expensive mobile phones. Why?

Page 5: Part 1 robot in the making

Smartphones

✤ mobile phone that offers more advanced computing ability and connectivity than a contemporary basic feature phone.

✤ may be thought of as handheld computers integrated within a mobile telephone

✤ allows the user to install and run more advanced applications based on a specific platform (Android Os,iOs etc.)

✤ Some popular devices are: Nexus One, iPhone 4, Blackberry Torch and Htc Mozart

Page 6: Part 1 robot in the making

66

Who uses smart phone?

Geeks?

Students?

Businessman?

Young guys?

Old Folks?

Page 7: Part 1 robot in the making

Why should you develop a mobile

application?

It’s fun

Full of challengesMany people in the world may use it

Become famous? Maybe

把妹 ?!最好是把的到 !Make money

Page 8: Part 1 robot in the making

What’s your target users?

Everybody

Page 9: Part 1 robot in the making

99

It’s a phone not a PC

• Less memory, less computing power

• Battery is its food

• Internet connection is not always on and stable

• Some operations cost user money

• Lot of hardware combination

• Different screen size

• With/without GPS

• Capacitive/Resistive/No touch screen

• ....

Page 10: Part 1 robot in the making

✤ Analysis showed that Apple offers a platform that is relatively easy to master and using which a developer can design great UIs.

Platforms most used in 2010

iOS

✤ They also have the largest app store and although the certification problem is an issue for some,  porting and fragmentation are not a challenge.

✤ Android, on the other hand, has been gaining momentum across all fields,storming its competitors’ key market – the US.

✤ Android’s many fragmentation issues are often overlooked in the face of many handset OEMs’ dependency on the platform.

Android

Page 11: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Androidsoftware stack for mobile devices that includes an operating system, middleware and key applications.

a software platform and operating system for mobile devices based on the Linux operating

system.

It is acquired and improved by Google and backed by the Open

Handset Alliance.

An open platform/source/free software for developers, users

& industry.

Page 12: Part 1 robot in the making
Page 13: Part 1 robot in the making

• Qualcomm MSM7201A, 528 MHz

• ROM 256 MB• RAM 192 MB

• 4.60 in x 2.16 in x 0.62 in• 158 grams

• Lithium Ion battery,1150 mAh• 3G (HSDPA)

• touch screen, HVGA 320x480

• QWERTY keyboard• 3.2 megapixel camera

• microSD expansion slot• GPS, compass, accelerometer

T-Mobile G1

First ever Android based smarthphone

Page 14: Part 1 robot in the making

Android History

•2005–Acquire Android(Andy Rubin: Danger CEO, Development Sidekick of T-Mobile)–Acquire Skia(2D Graphics for mobile device)–Acquire RegWireless(Browser and Email for mobile device)–Move Engineers from PlamSource(Dianne Hackborn, etc…)

•2007 Nov 5: Android announced •2007 Nov 12: Android SDK released by OHA•2007 Dec 14: Bug-fix SDK released

Page 15: Part 1 robot in the making

Android History

•2008 Jan 3: Android Developer Challenge I starts accepting submissions•2008 Feb 13: m5-rc15 SDK released•2008 Apr 14: 1788 total submissions for Challenge I•2008 May 12: Top 50 Applications in Challenge I announced•2008 Nov: Android Phone(G1 Phone by HTC/T-mobile)•2008 Nov: Full Source Open•2009 Apr: HTC Magic•2009 July: HTC Hero, Samsung i7500, Android Netbook, Set-top……•2009 Aug: Android Developer Challenge II

Page 16: Part 1 robot in the making

Version History

✤ Version History:

1.0 - Sep 20081.1 - Feb 20091.5 Cupcake - April 20091.6 Donut - Sep 20092.0/2.1 Eclair - Oct 2009 (2.0), Jan 2010 (2.1)2.2 Froyo - May 20102.3 Gingerbread - December 20103.0 Honeycomb - March 2011(?)Ice Cream Sandwich ??

Page 17: Part 1 robot in the making

Why Android?

✤ multiple applications, running simultaneously

✤ user may switch between running applications

✤ AppWidgets - UI’s for accessing content of an application directly on the Home Screen.

✤ It can run Flash applications!

✤ Copy and paste things.

✤ Again... The openness of the platform, giving you easy access to all of its important tools and sources.

Page 18: Part 1 robot in the making
Page 19: Part 1 robot in the making
Page 20: Part 1 robot in the making

Features

✤ Application framework enabling reuse and replacement of components

✤ Dalvik virtual machine optimized for mobile devices

✤ Integrated browser based on the open source WebKit engine

✤ Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)

✤ SQLite for structured data storage

Page 21: Part 1 robot in the making

Features

✤ Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)

✤ GSM Telephony (hardware dependent)

✤ Bluetooth, EDGE, 3G, and WiFi (hardware dependent)

✤ Camera, GPS, compass, and accelerometer (hardware dependent)

✤ Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

Page 22: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Android ArchitectureThe following diagram shows the major components of the Android operating system.

Page 23: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Linux Kernelrelies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.

Page 24: Part 1 robot in the making

Libraries

Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are

exposed to developers through the Android application framework.

Page 25: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Android Runtimeincludes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language

Page 26: Part 1 robot in the making

Dalvik Virtual Machine

✤written so that a device can run multiple VMs efficiently

✤executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint.

✤VM is register-based, and runs classes compiled by a Java language compiler that have been transformed into the .dex format by the included "dx" tool.

Page 27: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Application Framework It is a toolkit that all applications use, ones which come with mobile device like Contacts or SMS box, or applications written by Google and any Android developer. Developers have full access to the same framework APIs used by the core applications.

Page 28: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Applicationsship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language.

Page 29: Part 1 robot in the making

Design Goals of Android

✤ Openness

✤ Be as flexible as possible

✤ How it handles access to data: Mash up on the internet and everything else

✤ Rapid Development(XML,Java)

✤ Develop Language

✤ App: Java

✤ Framework: Java

✤ Libraries: C/C++

✤ OS & Driver: C

Page 30: Part 1 robot in the making

The Android Market

✤ One time $25 registration fee for developers

✤ Developer receives 70% of each sale

✤ Remaining amount goes to Google.

✤ Self-signed

✤ You can download APK files on the web

✤ http://www.android.com/market/

Page 31: Part 1 robot in the making

Advantages of Android

✤ Zero developmental cost – Tools for application development are downloaded for free.

✤ Multi platform support- SDK can be installed on windows,Linux and Mac OS .

✤ Developers will have complete access to handset capabilities and tools that will enable them to build more compelling and user-friendly services, bringing the Internet developer model to the mobile space.

✤ The SDK contains what you need to build and run Android applications, including a true device emulator and advanced debugging tools.

Page 32: Part 1 robot in the making

Disadvantages of Android

✤ A disadvantage of open-source development is that anyone can scrutinize the source code to find vulnerabilities and write exploits.

✤ The dependence on hardware and carrier partners puts the final product out of their control. - Fragmentation!

✤ Developers will have a hard time implementing the correct UI support for devices and the android code can be tweaked by others, leading to incorrect application framework.

Page 33: Part 1 robot in the making

The Future of Android

✤ Android will run on microwaves,refrigerators,car panels and other hardware devices that will meet the requirements.

Page 34: Part 1 robot in the making

The Future of Android

✤ Android now has entered Tablet devices that might compete with the iPad, like in Samsung Galaxy Tab, Cherry Superion, Dell Streak etc.

Page 35: Part 1 robot in the making

The Future of Android

✤ Android Devices will run NVIDIA Tegra 2,the worlds first dual core ARM Cortex CPU for mobile devices up to 1.2 Ghz.

✤ Dual cameras,HD’s,Televisions & many other interesting things to happen

1.)The world’s first dual-core ARM Cortex A9 CPU2.)running up to 1GHz3.)Eight independent processors to handle web browsing, HD video encode and decode and mobile 3D gaming 4.)10x faster than the processors used in smartphones today, and up to 4x the performance of the previous generation Tegra processor Advanced TSMC 40nm process with active power management

Page 36: Part 1 robot in the making

The Future of Android

Here is a visual representation of the latest stats regarding Android’s traction in the

18 months since debut. Information provided by Google Inc. at Google I/O 2010.

Key figures from the statistics:

•Google rapidly produces updates to the Android platform; often times OEMs and carriers struggle to keep up with software updates for consumer devices. Many factors attribute to this like phone processor limitations or custom user interfaces.

•According to AdMob, Android is first in total Web & App usage in the U.S. and second in smartphone sales behind RIM’s Blackberry.

•More than one billion miles have been navigated with Google Maps Navigation.

•Google experienced a 5x growth in mobile search (from 2008-2010).

•Last month Google was seeing more than 60k daily activations, that number has now jumped over 100k.

•There are 60 compatible devices, 59 carriers, 48 countries, and 21 OEMs supporting Android.

•Android has more than 50,000 Android Apps with more than 180,000 developers.

Page 37: Part 1 robot in the making

February 19, 2011 @ De La Salle University - Dasmariñas

Need more information about Android?

We are done...got questions?

Page 38: Part 1 robot in the making

38

References• http://en.wikipedia.org/wiki/Android_(operating_sy

stem)

• http://www.ibm.com/developerworks/opensource/library/os-android-devel/

• http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-Application-Development.productCd-0470344717.html

• http://groups.google.com/group/android-beginners

• http://developer.android.com/index.html

• Androidtapp.com

• Ed Brunette Hello Android38

Page 39: Part 1 robot in the making

January 28, 2011 @ Pamantasan ng Lungsod ng Maynila

Ready to build Android Apps?

Part 2: Android Application Development 101