Successfully reported this slideshow.

Desarrollo con AIR para Playbook


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Desarrollo con AIR para Playbook

  1. 1. Desarrollo con AIR para Playbook<br />Memo Döring<br />[Logo (opcional)]<br />
  2. 2. Introduction<br />Memo Döring<br />LATAM Team Lead, Developer Relations RIM<br />@memodoring<br />
  3. 3. What is the BlackBerry PlayBook?<br /><ul><li>1 GHz dual core processor
  4. 4. 1 GB Ram
  5. 5. 7" LCD display, 1024 x 600 screen resolution
  6. 6. 1080p HD video; H.264, MPEG4, WMV HDMI video output
  7. 7. High fidelity WebKit browser
  8. 8. Full Adobe® Flash® 10.1 support
  9. 9. High definition cameras
  10. 10. 3MP front facing
  11. 11. 5MP rear facing
  12. 12. Wi-Fi® 802.11 a/b/g/n
  13. 13. Micro USB and Micro HDMI
  14. 14. Weighs 0.9 lbs (400g)</li></li></ul><li>What is the BlackBerry PlayBook?<br />Pair BlackBerry PlayBook with a BlackBerry Smartphone<br /><ul><li>Push Technology
  15. 15. Email, Calendar, BBM and more</li></ul>Ideal for games, media, apps and uncompromised Internet<br /><ul><li>OpenGL Acceleration</li></ul>Powerful QNX technology<br /><ul><li>True multi-tasking
  16. 16. What the web runs on!</li></ul>Unleashing The Whole Web, At Blazing Speeds <br />
  17. 17. Setting Up your Environment<br />Downloads<br />Flash Builder 4.5<br />Tablet OS SDK<br />VM Ware Fusion<br /><br />Code Signing<br /><br />App World <br /><br />
  18. 18. Setting Up your Environment<br />
  19. 19. Setting Up your Environment<br />The Simulator<br />In VMware Fusion, click File > Open.<br />On the Open screen, navigate to the location where you installed the BlackBerry® Tablet OS SDK forAdobe® AIR®. <br />The default location is /Developer/SDKs/Research In Motion/blackberry-tablet-sdk-<version>/BlackBerryPlayBookSimulator-<version>.<br />Select the BlackBerryPlayBookSimulator.vmx file.<br />Click Open.<br />Click OK <br />
  20. 20. 8<br />
  21. 21. Creating Your First App<br />Flash Builder project<br /><br />Signing setup<br /><br />
  22. 22. blackberry-tablet.xml<br />Used to specify platform specific items<br />Customize your splash screen<br />Customize your app icon<br />Set app capabilities<br />Set Publisher tag for signing<br />
  23. 23. blackberry-tablet.xml<br />Custom App Icon<br /><icon><image>someicon.png</image></icon><br />Path is relative to the root of your app<br />Icon should be 86x86<br />Anything bigger than 90x90 will be ignored<br />
  24. 24. blackberry-tablet.xml<br />Custom Splash Screen<br /><splashscreen>landscape.png:portrait.png</splashscreen><br />Image path relative to app root folder<br />Images should be 1024x600 and 600x1024<br />
  25. 25. blackberry-tablet.xml<br />Application Capalbilites<br /><permission>use_camera</permission> <br /><permission>read_geolocation</permission><br /><permission>play_audio</permission> <br /><permission>access_internet</permission><br /><permission>access_shared</permission><br /><permission>record_audio</permission> <br /><permission>set_audio_volume</permission><br /><permission>read_device_identifying_information</permission><br />
  26. 26. Application and System States<br />App States (Dispatched by NativeApplication)<br /><ul><li>Activated – Standard AIR Event – Event.ACTIVATE
  27. 27. Deactivated – Standard AIR Event – Event.DEACTIVATE</li></ul>System States (Dispatched by QNXSystem)<br /><ul><li>Active – QNXSystemEvent.ACTIVE
  28. 28. Standby – QNXSystemEvent.STANDBY</li></ul>Default behaviour for Deactivated apps and System Standby is to switch app to a lower power mode<br />
  29. 29. Application and System States<br />Power Modes<br /><ul><li>Normal - periodic timer that runs at the frame rate
  30. 30. Throttled - rendering is disabled and the periodic timer runs at a maximum of 4Hz
  31. 31. Standby - rendering is disabled the AIR timer is stopped entirely</li></li></ul><li>Application and System States<br />Automatic Mode changes (app descriptor file<br /><qnx><inactivePowerMode>throttled</inactivePowerMode></qnx><br />Programmatically change current mode<br />QNXSystem.system.powerMode = QNXSystemPowerMode.NORMAL;QNXSystem.system.powerMode = QNXSystemPowerMode.THROTTLED;QNXSystem.system.powerMode = QNXSystemPowerMode.STANDBY;<br />Transition Time<br />You can set the time that the Deactivate state takes to take effect<br />QNXSystem.system.transitionTime = 3000; <br />Allows for you to finish animations, save state or any last cleanup;<br />
  32. 32. A Touch-centric App<br />17<br />
  33. 33. A Touch-centric App<br />18<br />
  34. 34. A Touch-centric App<br />Adding a swipe gesture<br />//Top down swipe is left for developers to implement an <br />//application menu<br />private _menu:MyMenuBar; //Custom menu bar<br />private function init():void {<br /> _menu.initializeUI();<br />app.addEventListener(QNXApplicationEvent.SWIPE_DOWN,<br />swipeDown);<br />}<br />private function swipeDown(e:QNXApplicationEvent):void {<br /> if(! _menu.isVisible()) {<br />;<br /> }<br />}<br />19<br />
  35. 35. A Touch-centric App<br />20<br />
  36. 36. A Touch-centric App<br />Keeping the Backlight On<br />The maximum supported size of a BlackBerry® Tablet OS<br />BlackBerry PlayBook.  Adobe® AIR® applications can override this backlight time-out period value and keep the screen on indefinitely<br />if(keepLightOn) {<br />NativeApplication.nativeApplication.systemIdleMode= SystemIdleMode.KEEP_AWAKE;<br />} <br />else {<br />NativeApplication.nativeApplication.systemIdleMode= SystemIdleMode.NORMAL;<br />}<br />21<br />
  37. 37. File Access<br />Applications will be run in the directory we call "sandbox” and should not attempt to access any files outside of this directory. <br /> <br />Sandbox structure<br /><ul><li>  app – app/air is read only link to where application files are installed
  38. 38.   data – read/write access area. $HOME envvar is set to this directory
  39. 39.   tmp – system may remove files stored here any time app is not running
  40. 40.   logs - stdin and stdout redirected to logs/log file; stores "core" files
  41. 41.   shared - link to common location where all apps share files</li></ul> <br />App/data/tmp/logs are the app's private directories<br /> <br />
  42. 42. File Access<br />File class mapping:<br />Shared file structure:<br /><ul><li>photos
  43. 43. bookmarks
  44. 44. misc
  45. 45. books
  46. 46. documents
  47. 47. voice
  48. 48. downloads
  49. 49. music
  50. 50. videos</li></li></ul><li>File Access<br />Applications will be run in the directory we call Users must grant your application access to the above folders within the shared directory. <br />To request access, you need to include the following snippet in your blackberry-tablet.xml file. <br /> <br /><qnx><br />     <action>access_shared</action><br /> </qnx><br /> <br /> <br />
  51. 51. Device Information<br /><ul><li>Battery level
  52. 52. Battery state
  53. 53. Hardware ID
  54. 54. Device OS
  55. 55. Device PIN
  56. 56. Platform Version
  57. 57. Vendor ID
  58. 58. Capture battery events for app lifecycle
  59. 59. Identify your users based on PIN
  60. 60. Identify the Device OS for functionality</li></li></ul><li>Device Information<br />
  61. 61. Device Information<br /><ul><li>Monitor battery levels for power consumption in your app
  62. 62. Customize your app to provide the user experience
  63. 63. Display battery and charging information from your app</li></li></ul><li>Camera Capabilities<br /><ul><li>Camera class support
  64. 64. Ability to choose rear or front facing camera
  65. 65. Camera UI class
  66. 66. Ability to launch camera and take a picture of video
  67. 67. CameraRoll class
  68. 68. Ability to select an image from the camera roll
  69. 69. Ability to add an image to the camera roll</li></li></ul><li>App World<br />Key Statistics<br />3 million Average Daily Downloads<br />35 million Downloads of App World client <br />Available in 100+ Countries<br />6 Languages –(EFIGS, Brazilian Portuguese)<br />26 Currencies<br />Carrier Billing with multiple major carriers <br /> Over30,000 apps available for download or purchase including2,000+ apps for BlackBerry PlayBook<br />FREE to register as a vendor and FREEto submit apps and upgrades<br />
  70. 70. App World<br /><ul><li>Credit Card and Carrier Billing introduced in August 2010 to add to consumer payment method options
  71. 71. 82% increase in gross sales with launch of AT&T carrier billing in App World 2.0
  72. 72. Working with our carrier partners to expand support for carrier billing</li></li></ul><li>App World<br />Indonesia ranks 5th, Mexico ranks 8th, and Australia ranks 10th for global sales after less than 30 days<br />LATAM and APAC consumers are growing opportunities for revenue<br />New countries in the top 25<br />Australia, South Africa, India, Turkey, Brazil, Singapore, Japan, Malaysia, Switzerland, South Korea, Thailand, Colombia, Venezuela, Ecuador<br />
  73. 73. Getting Started<br />Download Tools, Sample Code, Docs, and Videos<br />BlackBerry® Developer Zone<br />Ask for help<br />Support Forums<br />Issue Tracker<br />Stay In Touch<br />Twitter® @BlackBerryDev<br />Blog<br />Get Connected<br />Developer Groups<br />Alliance Program<br />
  74. 74. 2011 BlackBerry Developer Challenge<br />$3M USD in Prizes – Biggest Challenge Ever!<br />Series of Three Global Competitions <br /><ul><li>Best Adobe Flash or Adobe AIR app (Now Open! April 28 – August 12, 2011)
  75. 75. Most innovative BlackBerry WebWorks app on BlackBerry PlayBook tablets and BlackBerry 6 (Opens May 9 – August 26, 2011)
  76. 76. Most addicting social app using the BBM Social Platform (Opens Summer 2011)
  77. 77.</li></li></ul><li>2011 BlackBerry Developer Challenge<br />New - Six Special Recognition Awards<br />Best B2C application developed for a customer by an Agency or ISV<br />Most useful enterprise application <br />Best website conversion using the BlackBerry WebWorks platform<br />Most creative implementation of Super App characteristics<br />Top Performers – Most Innovative use of BlackBerry Payment Service and/or Advertising Service<br />Academic – Most compelling application created by student or faculty<br />
  78. 78. BlackBerry Developer Conferences<br />
  79. 79. Thank You.<br />36<br />