SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Android Flash Development An Introduction to Flash and AIR Development on Android Oswald Campesato Twitter: @ocampesato http://book2-web.com/ Stephen Chin Twitter: @steveonjava http://flash.steveonjava.com/
About the Presenters Stephen Chin Oswald Campesato + = ?
DISCLAIMERBleeding Edge Development WE ARE NOT AFFILIATED WITH ADOBE CORPORATION AND DO NOT REPRESENT THEIR OFFICIAL PRODUCT STATEMENTS.  THE TECHNOLOGIES REPRESENTED WITHIN ARE NOT FINAL AND MAY BE SUBJECT TO CHANGE.  WE ARE NOT RESPONSIBLE FOR OUTBREAKS OF SPONTANEOUS ANDROID FLASH HACKING. HACK RESPONSIBLY!
Flash and AIR on Android ,[object Object]
Works in the Browser
Limited Access to Device APIs
Runs on most smart phones (but not iPhone)Adobe Flash ,[object Object]
Deploys as an Android Market Application
Gives Full Access to Device APIs
Runs on most smart phones including Android and iPhoneAdobe AIR Latest Version: AIR 2.5.1
Flash Tooling
Flash Professional CS5
Flash Capability Reporter import flash.system.Capabilities; import flash.ui.Multitouch;   capabilityScroller.capabilities.text =   "Manufacturer: " + Capabilities.manufacturer + "" +   "OS: " + Capabilities.os + "" +   "Pixel Aspect Ratio: " + Capabilities.pixelAspectRatio + "" +   "Player Type: " + Capabilities.playerType + "" +   "Screen Color: " + Capabilities.screenColor + "" +   "Screen DPI: " + Capabilities.screenDPI + "" +   "Screen Resolution: " + Capabilities.screenResolutionX + "x" + Capabilities.screenResolutionY + "" +   "Touch Screen Type: " + Capabilities.touchscreenType + "" +   "Version: " + Capabilities.version + "" +   "Supports Gesture Events: " + Multitouch.supportsGestureEvents + "" +   "Supports Touch Events: " + Multitouch.supportsTouchEvents + "" +   "Input Mode: " + Multitouch.inputMode + "" +   "Max Touch Points: " + Multitouch.maxTouchPoints + "" +   "Supported Gestures: " + Multitouch.supportedGestures;
Flash Professional CS5
Flash Capability Reporter
Android Devices
Device Screen Characteristics
Screen Resolution vs. Density
Density in Flex Applications
Density Explorer Application <fx:Script>   <![CDATA[     [Bindable]     protected varauthorDensity:String;     [Bindable]     public vardpi:int;   ]]> </fx:Script> <s:VGrouppaddingTop="20" paddingLeft="15"  paddingRight="15" paddingBottom="15"      gap="20" width="100%" height="100%">   <s:Label text="Author Density:"/>   <s:HGroup gap="15">     <s:RadioButton id="ad160ppi" content="160ppi"                                      click="authorDensity = '160ppi'"/>     <s:RadioButton id="ad240ppi" content="240ppi"                                      click="authorDensity = '240ppi'"/>     <s:RadioButton id="ad320ppi" content="320ppi"                                      click="authorDensity = '320ppi'"/>   </s:HGroup>   <s:Label text="Device DPI: {dpi}"/>   <s:HSlider id="dpiSlider" minimum="130" maximum="320"                         value="@{dpi}" width="100%"/> </s:VGroup>
Author Density Settings 160ppi 240ppi 320ppi
Flash/AIR Mobile APIs Screen Orientation * Multitouch * Gestures * Accelerometer Camera CameraRoll GPS Microphone Audio Video REST JSON/XML ViewNavigator CSS Etc. * APIs we will show examples of today
Screen Orientation Stage Event Listener stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE,    <function callback>); StageOrientation Values DEFAULT ROTATED_LEFT ROTATED_RIGHT UPSIDE_DOWN UNKNOWN
Screen Orientation Example import flash.display.StageOrientation; import flash.events.StageOrientationEvent; stop(); stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, onChanged); function onChanged(event:StageOrientationEvent):void { 	play(); }
Portrait/Landscape Switching
Portrait/Landscape Switching
Mulititouch Gestures Two Finger Tap Pan Zoom Rotate Swipe Illustrations provided by Gestureworks (www.gestureworks.com)
Gestures via addEventListener public class MultitouchImage extends Image {     public function MultitouchImage() { addEventListener(TransformGestureEvent.GESTURE_ROTATE,  rotateListener); addEventListener(TransformGestureEvent.GESTURE_ZOOM, zoomListener); Multitouch.inputMode = MultitouchInputMode.GESTURE; }     protected function rotateListener(e:TransformGestureEvent):void {       rotation += e.rotation; }     protected function zoomListener(e:TransformGestureEvent):void { scaleX *= e.scaleX; scaleY *= e.scaleY; }}}
Gestures via Events protected function swipe 	(e:TransformGestureEvent):void {         page = (page + e.offsetX +  pages.numElements) %  pages.numElements; updateVisibility(); }  <s:VGroupgestureSwipe="swipe(event)”/>
Android Scrapbook Example
Touch Point API
Snake Generator Sample
Flex Mobile Views/Controls ,[object Object]
Views
ViewNavigator
Splash Screen
Components:

Weitere ähnliche Inhalte

Was ist angesagt?

Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
Doncho Minkov
 
もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。
keiko kudo
 
3 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 20113 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 2011
Reagan Hwang
 
Modern mobile development overview
Modern mobile development overviewModern mobile development overview
Modern mobile development overview
Dima Maleev
 
Mobile Dev For Web Devs
Mobile Dev For Web DevsMobile Dev For Web Devs
Mobile Dev For Web Devs
Justin James
 
Mobile app development sylhet it academy
Mobile app development  sylhet it academyMobile app development  sylhet it academy
Mobile app development sylhet it academy
Sylhet IT Academy
 

Was ist angesagt? (20)

Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。
 
Swift iOS Architecture with FLUX in mind. UA Mobile 2016.
Swift iOS Architecture with FLUX in mind. UA Mobile 2016.Swift iOS Architecture with FLUX in mind. UA Mobile 2016.
Swift iOS Architecture with FLUX in mind. UA Mobile 2016.
 
What's new in flutter and dart in 2020
 What's new in flutter and dart in 2020   What's new in flutter and dart in 2020
What's new in flutter and dart in 2020
 
Google I/O 2016 Key notes
Google I/O 2016 Key notesGoogle I/O 2016 Key notes
Google I/O 2016 Key notes
 
Flash Builder and Flex Future - Multiscreen Development
Flash Builder and Flex Future - Multiscreen DevelopmentFlash Builder and Flex Future - Multiscreen Development
Flash Builder and Flex Future - Multiscreen Development
 
Intro to Mobile Development for Web iOS and Android
Intro to Mobile Development for Web iOS and AndroidIntro to Mobile Development for Web iOS and Android
Intro to Mobile Development for Web iOS and Android
 
Google IO 2015
Google IO 2015Google IO 2015
Google IO 2015
 
Build responsive applications with google flutter
Build responsive applications with  google flutterBuild responsive applications with  google flutter
Build responsive applications with google flutter
 
3 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 20113 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 2011
 
Summary Of Polycom Cast App
Summary Of Polycom Cast AppSummary Of Polycom Cast App
Summary Of Polycom Cast App
 
Effective Android UI - English
Effective Android UI - EnglishEffective Android UI - English
Effective Android UI - English
 
Using PhoneGap Command Line
Using PhoneGap Command LineUsing PhoneGap Command Line
Using PhoneGap Command Line
 
Modern mobile development overview
Modern mobile development overviewModern mobile development overview
Modern mobile development overview
 
Mobile Dev For Web Devs
Mobile Dev For Web DevsMobile Dev For Web Devs
Mobile Dev For Web Devs
 
Android 10
Android 10Android 10
Android 10
 
Construir Aplicações Silverlight para Windows Phone 7
Construir Aplicações Silverlight para Windows Phone 7Construir Aplicações Silverlight para Windows Phone 7
Construir Aplicações Silverlight para Windows Phone 7
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android Apps
 
Flutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | EdurekaFlutter Tutorial For Beginners | Edureka
Flutter Tutorial For Beginners | Edureka
 
Mobile app development sylhet it academy
Mobile app development  sylhet it academyMobile app development  sylhet it academy
Mobile app development sylhet it academy
 

Ähnlich wie Beginning Android Flash Development

Flash Platform for Devices
Flash Platform for DevicesFlash Platform for Devices
Flash Platform for Devices
Serge Jespers
 
Getting the Magic on Android Tablets
Getting the Magic on Android TabletsGetting the Magic on Android Tablets
Getting the Magic on Android Tablets
OSCON Byrum
 
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
John Hartley
 
Flash platform fitc
Flash platform fitcFlash platform fitc
Flash platform fitc
Mark Doherty
 

Ähnlich wie Beginning Android Flash Development (20)

Beginning Android Flash Development - GTUG Edition
Beginning Android Flash Development - GTUG EditionBeginning Android Flash Development - GTUG Edition
Beginning Android Flash Development - GTUG Edition
 
Ui patterns
Ui patternsUi patterns
Ui patterns
 
Beautifully Usable, Multiple Screens Too
Beautifully Usable, Multiple Screens TooBeautifully Usable, Multiple Screens Too
Beautifully Usable, Multiple Screens Too
 
Creating Flash Content for Multiple Screens
Creating Flash Content for Multiple ScreensCreating Flash Content for Multiple Screens
Creating Flash Content for Multiple Screens
 
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-Workshop
 
Flash for Mobile Devices
Flash for Mobile DevicesFlash for Mobile Devices
Flash for Mobile Devices
 
Flash Platform for Devices
Flash Platform for DevicesFlash Platform for Devices
Flash Platform for Devices
 
Getting the Magic on Android Tablets
Getting the Magic on Android TabletsGetting the Magic on Android Tablets
Getting the Magic on Android Tablets
 
MoMo Oct Event
MoMo Oct EventMoMo Oct Event
MoMo Oct Event
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile Widgets
 
Enterprise AIR Development for JavaScript Developers
Enterprise AIR Development for JavaScript DevelopersEnterprise AIR Development for JavaScript Developers
Enterprise AIR Development for JavaScript Developers
 
Silver Light By Nyros Developer
Silver Light By Nyros DeveloperSilver Light By Nyros Developer
Silver Light By Nyros Developer
 
Geekcamp Android
Geekcamp AndroidGeekcamp Android
Geekcamp Android
 
SmartPhone Design and Delivery
SmartPhone Design and DeliverySmartPhone Design and Delivery
SmartPhone Design and Delivery
 
BluePrint Mobile Framework
BluePrint Mobile FrameworkBluePrint Mobile Framework
BluePrint Mobile Framework
 
Yahoo Mobile Widgets
Yahoo Mobile WidgetsYahoo Mobile Widgets
Yahoo Mobile Widgets
 
Mashup Y! widget
Mashup Y! widgetMashup Y! widget
Mashup Y! widget
 
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
 
Pentesting Android Applications
Pentesting Android ApplicationsPentesting Android Applications
Pentesting Android Applications
 
Flash platform fitc
Flash platform fitcFlash platform fitc
Flash platform fitc
 

Mehr von Stephen Chin

Mehr von Stephen Chin (20)

DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2
 
10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community
 
Java Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive GuideJava Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive Guide
 
DevOps Tools for Java Developers
DevOps Tools for Java DevelopersDevOps Tools for Java Developers
DevOps Tools for Java Developers
 
Java Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJCJava Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJC
 
RetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming ConsoleRetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming Console
 
JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)
 
Confessions of a Former Agile Methodologist (JFrog Edition)
Confessions of a Former Agile Methodologist (JFrog Edition)Confessions of a Former Agile Methodologist (JFrog Edition)
Confessions of a Former Agile Methodologist (JFrog Edition)
 
Devoxx4Kids Lego Workshop
Devoxx4Kids Lego WorkshopDevoxx4Kids Lego Workshop
Devoxx4Kids Lego Workshop
 
Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)
 
Confessions of a Former Agile Methodologist
Confessions of a Former Agile MethodologistConfessions of a Former Agile Methodologist
Confessions of a Former Agile Methodologist
 
Internet of Things Magic Show
Internet of Things Magic ShowInternet of Things Magic Show
Internet of Things Magic Show
 
Zombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the UndeadZombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the Undead
 
JCrete Embedded Java Workshop
JCrete Embedded Java WorkshopJCrete Embedded Java Workshop
JCrete Embedded Java Workshop
 
Oracle IoT Kids Workshop
Oracle IoT Kids WorkshopOracle IoT Kids Workshop
Oracle IoT Kids Workshop
 
OpenJFX on Android and Devices
OpenJFX on Android and DevicesOpenJFX on Android and Devices
OpenJFX on Android and Devices
 
Java on Raspberry Pi Lab
Java on Raspberry Pi LabJava on Raspberry Pi Lab
Java on Raspberry Pi Lab
 
Java 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and LegosJava 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and Legos
 
DukeScript
DukeScriptDukeScript
DukeScript
 
Devoxx4Kids NAO Workshop
Devoxx4Kids NAO WorkshopDevoxx4Kids NAO Workshop
Devoxx4Kids NAO Workshop
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Beginning Android Flash Development

  • 1. Android Flash Development An Introduction to Flash and AIR Development on Android Oswald Campesato Twitter: @ocampesato http://book2-web.com/ Stephen Chin Twitter: @steveonjava http://flash.steveonjava.com/
  • 2. About the Presenters Stephen Chin Oswald Campesato + = ?
  • 3. DISCLAIMERBleeding Edge Development WE ARE NOT AFFILIATED WITH ADOBE CORPORATION AND DO NOT REPRESENT THEIR OFFICIAL PRODUCT STATEMENTS. THE TECHNOLOGIES REPRESENTED WITHIN ARE NOT FINAL AND MAY BE SUBJECT TO CHANGE. WE ARE NOT RESPONSIBLE FOR OUTBREAKS OF SPONTANEOUS ANDROID FLASH HACKING. HACK RESPONSIBLY!
  • 4.
  • 5. Works in the Browser
  • 6. Limited Access to Device APIs
  • 7.
  • 8. Deploys as an Android Market Application
  • 9. Gives Full Access to Device APIs
  • 10. Runs on most smart phones including Android and iPhoneAdobe AIR Latest Version: AIR 2.5.1
  • 13. Flash Capability Reporter import flash.system.Capabilities; import flash.ui.Multitouch;   capabilityScroller.capabilities.text = "Manufacturer: " + Capabilities.manufacturer + "" + "OS: " + Capabilities.os + "" + "Pixel Aspect Ratio: " + Capabilities.pixelAspectRatio + "" + "Player Type: " + Capabilities.playerType + "" + "Screen Color: " + Capabilities.screenColor + "" + "Screen DPI: " + Capabilities.screenDPI + "" + "Screen Resolution: " + Capabilities.screenResolutionX + "x" + Capabilities.screenResolutionY + "" + "Touch Screen Type: " + Capabilities.touchscreenType + "" + "Version: " + Capabilities.version + "" + "Supports Gesture Events: " + Multitouch.supportsGestureEvents + "" + "Supports Touch Events: " + Multitouch.supportsTouchEvents + "" + "Input Mode: " + Multitouch.inputMode + "" + "Max Touch Points: " + Multitouch.maxTouchPoints + "" + "Supported Gestures: " + Multitouch.supportedGestures;
  • 19. Density in Flex Applications
  • 20. Density Explorer Application <fx:Script> <![CDATA[ [Bindable] protected varauthorDensity:String; [Bindable] public vardpi:int; ]]> </fx:Script> <s:VGrouppaddingTop="20" paddingLeft="15" paddingRight="15" paddingBottom="15" gap="20" width="100%" height="100%"> <s:Label text="Author Density:"/> <s:HGroup gap="15"> <s:RadioButton id="ad160ppi" content="160ppi" click="authorDensity = '160ppi'"/> <s:RadioButton id="ad240ppi" content="240ppi" click="authorDensity = '240ppi'"/> <s:RadioButton id="ad320ppi" content="320ppi" click="authorDensity = '320ppi'"/> </s:HGroup> <s:Label text="Device DPI: {dpi}"/> <s:HSlider id="dpiSlider" minimum="130" maximum="320" value="@{dpi}" width="100%"/> </s:VGroup>
  • 21. Author Density Settings 160ppi 240ppi 320ppi
  • 22. Flash/AIR Mobile APIs Screen Orientation * Multitouch * Gestures * Accelerometer Camera CameraRoll GPS Microphone Audio Video REST JSON/XML ViewNavigator CSS Etc. * APIs we will show examples of today
  • 23. Screen Orientation Stage Event Listener stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, <function callback>); StageOrientation Values DEFAULT ROTATED_LEFT ROTATED_RIGHT UPSIDE_DOWN UNKNOWN
  • 24. Screen Orientation Example import flash.display.StageOrientation; import flash.events.StageOrientationEvent; stop(); stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, onChanged); function onChanged(event:StageOrientationEvent):void { play(); }
  • 27. Mulititouch Gestures Two Finger Tap Pan Zoom Rotate Swipe Illustrations provided by Gestureworks (www.gestureworks.com)
  • 28. Gestures via addEventListener public class MultitouchImage extends Image { public function MultitouchImage() { addEventListener(TransformGestureEvent.GESTURE_ROTATE, rotateListener); addEventListener(TransformGestureEvent.GESTURE_ZOOM, zoomListener); Multitouch.inputMode = MultitouchInputMode.GESTURE; } protected function rotateListener(e:TransformGestureEvent):void { rotation += e.rotation; } protected function zoomListener(e:TransformGestureEvent):void { scaleX *= e.scaleX; scaleY *= e.scaleY; }}}
  • 29. Gestures via Events protected function swipe (e:TransformGestureEvent):void { page = (page + e.offsetX + pages.numElements) % pages.numElements; updateVisibility(); } <s:VGroupgestureSwipe="swipe(event)”/>
  • 33.
  • 34. Views
  • 40. List, Scroller, and Touch GesturesFor more info see: http://opensource.adobe.com/wiki/display/flexsdk/Hero
  • 41. Future Device Support Blackberry Playbook Android Tablets iPhone/iPad Television http://www.youtube.com/watch?v=zyJVNK7aSW4
  • 42. Blackberry Playbook Specs “Enterprise Ready" Device 7" Screen (9.7mm Thick) HTML5 and FULL Flash 10.1 Hardware Accelerated Video Supports HDMI (TV output) Displays PPT and Documents Front and Rear Cameras 1 GHZ core and 1GB RAM Q1/Q2 of 2011
  • 43. Other Tablet Flash Devices Cisco Cius ("see us") "enterprise ready" device Samsung Galaxy Tab "enterprise ready" device 7" screen features: http://www.youtube.com/watch?v=v1PO3_iqbQ8 Toshiba 100 Folio (Android) http://www.youtube.com/watch?v=qfVurbT1ytA
  • 44. WP7 Based Tablets Acer Asus (Eee PC T101MT) Cosmos Dell Fujitsu Lenovo (Ideapad S10-3t) Motion Computing (J3500) Samsung (Gloria) Toshiba (Libretto W100)
  • 45. Upcoming TV Flash Devices Google TV Open Source Flash 10.1 Support Limited Tests Conducted View Web Apps Partnership with Sony, Intel, Logitech Adobe TV http://tv.adobe.com/ http://www.youtube.com/watch?v=U_B7-wWnY0Y "People of Lava" Android TV (Sweden): First Android-based TV(?) http://www.youtube.com/watch?v=NQEMkXJ1Hbg
  • 46. Google TV – Logitech Revue Specs: Atom CE4150 Processor 1GB RAM HDMI port Features 12 bundled applications Local file media player Search capabilities (local/web) Bookmark capability Limitations no file download capability no screenshot capability
  • 47. And An Android Car? Android Car (China Only) Made Available in April, 2010 $10,250 – $19,000 USD Android 2.1 Features: Real-time Traffic Directions Internet On-line Chat http://www.youtube.com/watch?v=76gTWZKSAI8
  • 48. Development Links Android SDK http://developer.android.com/sdk/index.html AIR 2.5 http://labs.adobe.com/technologies/air2/android/ Flex Builder 4.5 (Burrito) http://labs.adobe.com/technologies/flashbuilder_burrito/ Flex Catalyst 5.5 (Panini) http://labs.adobe.com/technologies/flashcatalyst_panini/ Flex 4.5 SDK (Hero) http://labs.adobe.com/technologies/flexsdk_hero/ iPhone Packager http://labs.adobe.com/technologies/packagerforiphone/
  • 49. Blogs to Read Stephen Chin http://flash.steveonjava.com/ James Ward http://www.jamesward.com/ Duane Nickull http://technoracle.blogspot.com/ Christian Cantrell http://blogs.adobe.com/cantrell/ Christophe Coenraets http://coenraets.org/blog/ Serge Jespers http://www.webkitchen.be/ Lee Brimelow (The Flash Blog) http://blog.theflashblog.com/ Mark Doherty (FlashMobileBlog) http://www.flashmobileblog.com/
  • 50.