46
@kevinmcdonagh Android isn't just about phones

Android is not just mobile

Embed Size (px)

DESCRIPTION

About the likelihood of Android spreading across embedded devices. Given at OverTheAir 2010. #ota10

Citation preview

Page 1: Android is not just mobile

@kevinmcdonaghAndroid isn't just about phones

Page 2: Android is not just mobile
Page 3: Android is not just mobile
Page 4: Android is not just mobile
Page 5: Android is not just mobile
Page 6: Android is not just mobile

W3C standards'95 - HTML4'96 - XML'2012? - HTML5

Page 7: Android is not just mobile

New input element's in HTML5:tel, search, url, email,datetimedate, month,

week,time, datetime-localnumber,range, color

Page 8: Android is not just mobile

WebSocket APIWebSocket protocolServer-Sent EventsWeb Storage (localStorage and sessionStorage)Web SQL DatabaseGeolocationWorkersOffline

hasFeature("XHTML", "5.0")

Page 9: Android is not just mobile

Source: Isuppli Press release 201

Source: "Future of Embedded Systems Technology". BCC Report G-229R.

Page 10: Android is not just mobile
Page 11: Android is not just mobile
Page 12: Android is not just mobile
Page 13: Android is not just mobile
Page 14: Android is not just mobile
Page 15: Android is not just mobile

● Set Top boxes● GPS Units● Kiosks● Self-Checkout● Phones● Personal Computers● Medical Equipment

Page 16: Android is not just mobile

3,000,000 iPads in 80 Days

Page 17: Android is not just mobile
Page 18: Android is not just mobile
Page 19: Android is not just mobile
Page 20: Android is not just mobile
Page 21: Android is not just mobile
Page 22: Android is not just mobile
Page 24: Android is not just mobile
Page 25: Android is not just mobile
Page 26: Android is not just mobile

●Byte Code●One DEX file with shared constant pools●Dex files are read only & shared within processes●Alignment and Ordering to suit local system●Register based

Dalvik Optimisations

Page 27: Android is not just mobile
Page 28: Android is not just mobile
Page 29: Android is not just mobile

●Intents●Intent Receivers

Page 30: Android is not just mobile

• Broadcast Receivers• Intent Filters listen to Broadcast Intents

Page 31: Android is not just mobile

Intent Types

Activity Action Broadcast Intents

Page 32: Android is not just mobile

Intent intent = new Intent (......................); startActivity(intent);

Intent i = new Intent(); i.setAction("my.package.action"); i.putExtra("number", new Integer( 99 ) ); i.putExtra("text", new String( “foo”) );startSubActivity(i, ACTIVITY_INVOKE);

Page 33: Android is not just mobile

Intent intent = new Intent (Intent.ACTION_DIAL, Uri.parse(“tel:93675359”)); startActivity(intent);

Intent intent = new Intent (Intent.ACTION_VIEW, Uri.parse(“http://www.droidcon.co.uk”)); startActivity(intent);

Page 34: Android is not just mobile

<activity android:name=”.HelloWorld” android:label=”@string/app_name”><intent-flter>

<action android:name=”android.intent.action.VIEW”/><category android:name=”android.intent.category.DEFAULT”/><category android:name=”android.intent.category.BROWSABLE”/> <data android:scheme=”scheme”/>

</intent-flter> </activity>

Intent intent = new Intent (Intent.ACTION_VIEW, Uri.parse(“scheme://”)); startActivity(intent);

Page 35: Android is not just mobile

<activity android:name=”.HelloWorld” android:label=”@string/app_name”><intent-flter>

<action android:name=”android.intent.action.VIEW”/> <category android:name=”android.intent.category.DEFAULT”/> <category android:name=”android.intent.category.BROWSABLE”/>

<data android:scheme=”http” android:host=”droidcon.co.uk”/></intent-flter>

</activity>

Intent intent = new Intent (Intent.ACTION_VIEW, Uri.parse(“http://www.droidcon.co.uk”)); startActivity(intent);

Page 36: Android is not just mobile

<receiver android:name=”CameraPressedReceiver”><intent-flter>

<action android:name=”android.intent.action.CAMERA_BUTTON”/> </intent-flter>

</receiver>

public class CameraPressed extends Broadcast Receiver {

@Override public void onReceive(Context context, Intent intent) {

Page 37: Android is not just mobile

CRUD with HTTP verbs (post/get/put/delete)Simplicity in data sources through a unified interface

query() insert() update() delete() getType() onCreate()

Page 38: Android is not just mobile

Dim ScreensSuspend long tasksWarn about I/ODon't poll+ <add yours>

Page 39: Android is not just mobile

Receive messageCheck schemeCheck contentsIntercept SMSPass Extras

Page 40: Android is not just mobile

Generate suggested todosSuspend resourcesChange Answering machineAuto responders to emailSuspend ServicesAuto download shows/podcasts

Page 41: Android is not just mobile
Page 42: Android is not just mobile
Page 43: Android is not just mobile
Page 44: Android is not just mobile
Page 45: Android is not just mobile

28th/29th OctoberLargest everAndroid Conference!

In London!

www.droidcon.co.uk

Page 46: Android is not just mobile

@novodawww.novoda.com

@kevinmcdonaghTel: 07981932411