SlideShare ist ein Scribd-Unternehmen logo
1 von 35
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/
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.6
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 varapplicationDPI: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="ad160" content="160"                                      click="applicationDPI = 160"/>     <s:RadioButton id="ad240" content="240"                                      click="applicationDPI= 240"/>     <s:RadioButton id="ad320" content="320"                                      click="applicationDPI = 320"/>   </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?

Java User Meetup Bandung "Android" by Agate Studio
Java User Meetup Bandung "Android" by Agate StudioJava User Meetup Bandung "Android" by Agate Studio
Java User Meetup Bandung "Android" by Agate Studio
Petra Barus
 
もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。
keiko kudo
 
Android Wear Development
Android Wear DevelopmentAndroid Wear Development
Android Wear Development
Johnny Sung
 
How-to Create a 'Lock' record in Salesforce
How-to Create a 'Lock' record in SalesforceHow-to Create a 'Lock' record in Salesforce
How-to Create a 'Lock' record in Salesforce
Saaspoint
 

Was ist angesagt? (14)

Java User Meetup Bandung "Android" by Agate Studio
Java User Meetup Bandung "Android" by Agate StudioJava User Meetup Bandung "Android" by Agate Studio
Java User Meetup Bandung "Android" by Agate Studio
 
Choosing the Best Mobile App Framework
Choosing the Best Mobile App FrameworkChoosing the Best Mobile App Framework
Choosing the Best Mobile App Framework
 
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
 
06 UI Layout
06 UI Layout06 UI Layout
06 UI Layout
 
Creation of simple application using - step by step
Creation of simple application using - step by stepCreation of simple application using - step by step
Creation of simple application using - step by step
 
もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。もし青森の女子WebデザイナーがAndroidと出会ったら。
もし青森の女子WebデザイナーがAndroidと出会ったら。
 
Android Wear: A Developer's Perspective
Android Wear: A Developer's PerspectiveAndroid Wear: A Developer's Perspective
Android Wear: A Developer's Perspective
 
Introduction to Windows 8
Introduction to Windows 8Introduction to Windows 8
Introduction to Windows 8
 
Getting Started with Titanium & Alloy
Getting Started with Titanium & AlloyGetting Started with Titanium & Alloy
Getting Started with Titanium & Alloy
 
Android Wear Development
Android Wear DevelopmentAndroid Wear Development
Android Wear Development
 
Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
 
製作 Unity Plugin for Android
製作 Unity Plugin for Android製作 Unity Plugin for Android
製作 Unity Plugin for Android
 
How-to Create a 'Lock' record in Salesforce
How-to Create a 'Lock' record in SalesforceHow-to Create a 'Lock' record in Salesforce
How-to Create a 'Lock' record in Salesforce
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 

Andere mochten auch

Andere mochten auch (7)

JavaFX and Scala in the Cloud
JavaFX and Scala in the CloudJavaFX and Scala in the Cloud
JavaFX and Scala in the Cloud
 
Efficient JavaScript Unit Testing, March 2013
Efficient JavaScript Unit Testing, March 2013Efficient JavaScript Unit Testing, March 2013
Efficient JavaScript Unit Testing, March 2013
 
JavaFX 2.0 With Alternative Languages - JavaOne 2011
JavaFX 2.0 With Alternative Languages - JavaOne 2011JavaFX 2.0 With Alternative Languages - JavaOne 2011
JavaFX 2.0 With Alternative Languages - JavaOne 2011
 
Visage Android - Cleaner APIs, Cleaner UIs
Visage Android - Cleaner APIs, Cleaner UIsVisage Android - Cleaner APIs, Cleaner UIs
Visage Android - Cleaner APIs, Cleaner UIs
 
Orishas mitos-y-leyendas
Orishas mitos-y-leyendasOrishas mitos-y-leyendas
Orishas mitos-y-leyendas
 
DukeScript
DukeScriptDukeScript
DukeScript
 
JCrete Embedded Java Workshop
JCrete Embedded Java WorkshopJCrete Embedded Java Workshop
JCrete Embedded Java Workshop
 

Ähnlich wie Beginning Android Flash Development - GTUG Edition

OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
Pamela Fox
 
Mobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 AndroidMobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 Android
Mohammad Shaker
 
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
 
JavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.jsJavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.js
Ben Combee
 
Devoxx 09 (Belgium)
Devoxx 09 (Belgium)Devoxx 09 (Belgium)
Devoxx 09 (Belgium)
Roger Kitain
 
What I brought back from Austin
What I brought back from AustinWhat I brought back from Austin
What I brought back from Austin
Lisa Adkins
 

Ähnlich wie Beginning Android Flash Development - GTUG Edition (20)

Android Flash Development
Android Flash DevelopmentAndroid Flash Development
Android Flash Development
 
Beautifully Usable, Multiple Screens Too
Beautifully Usable, Multiple Screens TooBeautifully Usable, Multiple Screens Too
Beautifully Usable, Multiple Screens Too
 
Building apps for multiple devices
Building apps for multiple devicesBuilding apps for multiple devices
Building apps for multiple devices
 
Advanced Android gReporter
Advanced Android gReporterAdvanced Android gReporter
Advanced Android gReporter
 
21 android2 updated
21 android2 updated21 android2 updated
21 android2 updated
 
Geekcamp Android
Geekcamp AndroidGeekcamp Android
Geekcamp Android
 
AIR & API
AIR & APIAIR & API
AIR & API
 
Developing in android
Developing in androidDeveloping in android
Developing in android
 
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
 
BluePrint Mobile Framework
BluePrint Mobile FrameworkBluePrint Mobile Framework
BluePrint Mobile Framework
 
Yahoo Mobile Widgets
Yahoo Mobile WidgetsYahoo Mobile Widgets
Yahoo Mobile Widgets
 
OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
 
Mobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 AndroidMobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 Android
 
Getting the Magic on Android Tablets
Getting the Magic on Android TabletsGetting the Magic on Android Tablets
Getting the Magic on Android Tablets
 
JavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.jsJavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.js
 
Mashups & APIs
Mashups & APIsMashups & APIs
Mashups & APIs
 
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
 
Devoxx 09 (Belgium)
Devoxx 09 (Belgium)Devoxx 09 (Belgium)
Devoxx 09 (Belgium)
 
What I brought back from Austin
What I brought back from AustinWhat I brought back from Austin
What I brought back from Austin
 

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
 
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
 
Devoxx4Kids NAO Workshop
Devoxx4Kids NAO WorkshopDevoxx4Kids NAO Workshop
Devoxx4Kids NAO Workshop
 
Raspberry Pi Gaming 4 Kids (Devoxx4Kids)
Raspberry Pi Gaming 4 Kids (Devoxx4Kids)Raspberry Pi Gaming 4 Kids (Devoxx4Kids)
Raspberry Pi Gaming 4 Kids (Devoxx4Kids)
 
Raspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch VersionRaspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch Version
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
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)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Beginning Android Flash Development - GTUG Edition

  • 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.
  • 3. Works in the Browser
  • 4. Limited Access to Device APIs
  • 5.
  • 6. Deploys as an Android Market Application
  • 7. Gives Full Access to Device APIs
  • 8. Runs on most smart phones including Android and iPhoneAdobe AIR Latest Version: AIR 2.6
  • 11. 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;
  • 17. Density in Flex Applications
  • 18. Density Explorer Application <fx:Script> <![CDATA[ [Bindable] protected varapplicationDPI: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="ad160" content="160" click="applicationDPI = 160"/> <s:RadioButton id="ad240" content="240" click="applicationDPI= 240"/> <s:RadioButton id="ad320" content="320" click="applicationDPI = 320"/> </s:HGroup> <s:Label text="Device DPI: {dpi}"/> <s:HSlider id="dpiSlider" minimum="130" maximum="320" value="@{dpi}" width="100%"/> </s:VGroup>
  • 19. Author Density Settings 160ppi 240ppi 320ppi
  • 20. 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
  • 21. Screen Orientation Stage Event Listener stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, <function callback>); StageOrientation Values DEFAULT ROTATED_LEFT ROTATED_RIGHT UPSIDE_DOWN UNKNOWN
  • 22. Screen Orientation Example import flash.display.StageOrientation; import flash.events.StageOrientationEvent; stop(); stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, onChanged); function onChanged(event:StageOrientationEvent):void { play(); }
  • 25. Mulititouch Gestures Two Finger Tap Pan Zoom Rotate Swipe Illustrations provided by Gestureworks (www.gestureworks.com)
  • 26. 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; }}}
  • 27. Gestures via Events protected function swipe (e:TransformGestureEvent):void { page = (page + e.offsetX + pages.numElements) % pages.numElements; updateVisibility(); } <s:VGroupgestureSwipe="swipe(event)”/>
  • 31.
  • 32. Views
  • 38. List, Scroller, and Touch GesturesFor more info see: http://opensource.adobe.com/wiki/display/flexsdk/Hero
  • 39. Future Device Support Blackberry Playbook Android Tablets iPhone/iPad Television http://www.youtube.com/watch?v=zyJVNK7aSW4
  • 40. 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
  • 41. 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
  • 42. WP7 Based Tablets Acer Asus (Eee PC T101MT) Cosmos Dell Fujitsu Lenovo (Ideapad S10-3t) Motion Computing (J3500) Samsung (Gloria) Toshiba (Libretto W100)
  • 43. 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
  • 44. 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
  • 45. 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
  • 46. 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/
  • 47. 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/
  • 48.