air on android

13

Upload: karel-cardinaels

Post on 27-May-2015

976 views

Category:

Technology


9 download

TRANSCRIPT

Page 1: Air on Android

AIR runtime for Mobile

KAREL CARDINAELSDIETLEV MAERTENS

Page 2: Air on Android

AIR runtime for Mobile

AIR RUNTIME

Environment

rich media applications across platforms

desktop and mobile applications

uses Actionscript 3.0

Page 3: Air on Android

AIR runtime for Mobile

AIR RUNTIME

AIR 2.5

multi-touch

gestures (swipe, zoom,...)

Advanced networking capabilities sockets & UDP support

Page 4: Air on Android

AIR runtime for Mobile

ANDROID

WHAT?

Operating system for mobile devices

JAVA language

Open Source

Page 5: Air on Android

AIR runtime for Mobile

ANDROIDAIR ON AIR ON

IPHONE OSVS

Runtime not included Runtime included

APK file IPA file

No developer certificate Developer certificate

screen sizes and capabilities differ more on androidphones (>100 phones)

Page 6: Air on Android

AIR runtime for Mobile

HELLO WORLD

WHAT DO WE NEED?

AIR SDK FDT (for coding)Flash CS5 + Android extensionAndroid Device 2.2 with Air runtime

Page 7: Air on Android

AIR runtime for Mobile

TIPS & TRICKS

CHECK DEVICE CAPABILITIES

Multitouch.supportsGestureEventsMultitouch.supportsTouchEventMultitouch.maxTouchPointsMultitouch.supportedGestures

Page 8: Air on Android

AIR runtime for Mobile

TIPS & TRICKS

GESTURESSWIPEZOOMPANROTATE

Page 9: Air on Android

AIR runtime for Mobile

TIPS & TRICKS

TOUCHEVENTS

TOUCH_BEGINTOUCH_ENDTOUCH_MOVETOUCH_TAPTOUCH_OUT....

Page 10: Air on Android

AIR runtime for Mobile

ACCELEROMETER & GEOLOCATION

ACCELEROMETER

GEOLOCATION

X, Y & Z acceloration can be retrieved

latitude, longtitude, speed, altitude, heading, timestamp,....

Page 11: Air on Android

AIR runtime for Mobile

BEST PRACTICES

Device fonts render faster than embedded fonts

Use cacheAsBitmap or BitmapData.draw() on vectors

Hide things that aren’t used - visible = false

Optimize your graphics before you use them

Reuse your code from other projects, but don’t just port a flash project to mobile

Page 12: Air on Android

AIR runtime for Mobile

DEMO TIME

Page 13: Air on Android

THANKS FOR YOUR ATTENTION

AIR runtime for Mobile

KAREL CARDINAELSDIETLEV MAERTENS