air on android
TRANSCRIPT
AIR runtime for Mobile
KAREL CARDINAELSDIETLEV MAERTENS
AIR runtime for Mobile
AIR RUNTIME
Environment
rich media applications across platforms
desktop and mobile applications
uses Actionscript 3.0
AIR runtime for Mobile
AIR RUNTIME
AIR 2.5
multi-touch
gestures (swipe, zoom,...)
Advanced networking capabilities sockets & UDP support
AIR runtime for Mobile
ANDROID
WHAT?
Operating system for mobile devices
JAVA language
Open Source
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)
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
AIR runtime for Mobile
TIPS & TRICKS
CHECK DEVICE CAPABILITIES
Multitouch.supportsGestureEventsMultitouch.supportsTouchEventMultitouch.maxTouchPointsMultitouch.supportedGestures
AIR runtime for Mobile
TIPS & TRICKS
GESTURESSWIPEZOOMPANROTATE
AIR runtime for Mobile
TIPS & TRICKS
TOUCHEVENTS
TOUCH_BEGINTOUCH_ENDTOUCH_MOVETOUCH_TAPTOUCH_OUT....
AIR runtime for Mobile
ACCELEROMETER & GEOLOCATION
ACCELEROMETER
GEOLOCATION
X, Y & Z acceloration can be retrieved
latitude, longtitude, speed, altitude, heading, timestamp,....
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
AIR runtime for Mobile
DEMO TIME
THANKS FOR YOUR ATTENTION
AIR runtime for Mobile
KAREL CARDINAELSDIETLEV MAERTENS