• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Desarrollo con AIR para Playbook
 

Desarrollo con AIR para Playbook

on

  • 1,008 views

 

Statistics

Views

Total Views
1,008
Views on SlideShare
973
Embed Views
35

Actions

Likes
0
Downloads
12
Comments
0

2 Embeds 35

http://www.sg.com.mx 34
http://sg.com.mx 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Creating-a-BlackBerry-PlayBook-tablet-application-menu-using-the/ta-p/746061
  • The maximum supported size of a BlackBerry® Tablet OS application is 300 MB.  While the development tools do allow the creation of larger applications, you may run into installation problems when trying to install a BAR file that is larger than 300 MB.By default, the screen of a BlackBerry® PlayBook™ will turn off if there is no user activity within the backlight time-out period configured in the screen options of the BlackBerry PlayBook.  Adobe® AIR® applications can override this time-out value and keep the screen on indefinetly by changing the system idle mode to SystemIdleMode.KEEP_AWAKE.  The code sample below demonstrates how to toggle this value.
  • Applications will be run in the directory we call "sandbox". Name of this directory is irrelevant and cannot be relied on.  An application should not attempt to access any files outside of this directory. Sandbox is the default "working directory". The structure is   app  data  tmp  logs  shared All except shared are app's private directories, only the app can read/write files there. The "app" directory is the link to where application files are installed (what was packaged in the bar file), these files are read only. For Adobe® AIR®, application files will be in subdirectory "air" (i.e. app/air/your_file). The private data directory is "data". Application has full access to this directory (read/write). The $HOME envvar is set to this directory. To initiate the sandbox app may copy files from "app" to "data" (for example user modifiable config files) on the first run. The "tmp" directory can be used to create temporary files, application should take care of cleaning these files, but system may remove them at any time app is not running - so it cannot be used to persist data, only "data" directory should be used for this. The "logs" is used for development, application stdin and stdout is redirected to logs/log file, as well as "core" files will be created there if app crashes. The "shared" is link to common location where all apps share files. It has the following structure:
  • Applications will be run in the directory we call "sandbox". Name of this directory is irrelevant and cannot be relied on.  An application should not attempt to access any files outside of this directory. Sandbox is the default "working directory". The structure is   app  data  tmp  logs  shared All except shared are app's private directories, only the app can read/write files there. The "app" directory is the link to where application files are installed (what was packaged in the bar file), these files are read only. For Adobe® AIR®, application files will be in subdirectory "air" (i.e. app/air/your_file). The private data directory is "data". Application has full access to this directory (read/write). The $HOME envvar is set to this directory. To initiate the sandbox app may copy files from "app" to "data" (for example user modifiable config files) on the first run. The "tmp" directory can be used to create temporary files, application should take care of cleaning these files, but system may remove them at any time app is not running - so it cannot be used to persist data, only "data" directory should be used for this. The "logs" is used for development, application stdin and stdout is redirected to logs/log file, as well as "core" files will be created there if app crashes. The "shared" is link to common location where all apps share files. It has the following structure:
  • Applications will be run in the directory we call "sandbox". Name of this directory is irrelevant and cannot be relied on.  An application should not attempt to access any files outside of this directory. Sandbox is the default "working directory". The structure is   app  data  tmp  logs  shared All except shared are app's private directories, only the app can read/write files there. The "app" directory is the link to where application files are installed (what was packaged in the bar file), these files are read only. For Adobe® AIR®, application files will be in subdirectory "air" (i.e. app/air/your_file). The private data directory is "data". Application has full access to this directory (read/write). The $HOME envvar is set to this directory. To initiate the sandbox app may copy files from "app" to "data" (for example user modifiable config files) on the first run. The "tmp" directory can be used to create temporary files, application should take care of cleaning these files, but system may remove them at any time app is not running - so it cannot be used to persist data, only "data" directory should be used for this. The "logs" is used for development, application stdin and stdout is redirected to logs/log file, as well as "core" files will be created there if app crashes. The "shared" is link to common location where all apps share files. It has the following structure:
  • Growing requests for localized versions of apps in these regions!
  • Submission incentiveFirst 100 submissions to each competition and BlackBerry App World (value ~US $6K):BlackBerry App World carousel placement for 1 weekOne BlackBerry SmartphoneTop Three Competition Winners per regionGrand Prize Winner (value ~US $33K)Trip for two to local BlackBerry developer conference, accommodation and developer conference passesMedia press packageBlackBerry App World carousel placement for 3 weeksBlackBerry Alliance Membership – Elite levelOne BlackBerry PlayBook and Three BlackBerry Smartphones$1000 BlackBerry accessory gift certificateTop Three Competition Winners per regionFirst Runner-Up (value ~US $18K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 2 weeksBlackBerry Alliance Membership – Select levelOne BlackBerry PlayBook and Two BlackBerry Smartphones$500 BlackBerry accessory gift certificateSecond Runner-Up (value ~US $10K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 1 weekBlackBerry Alliance Membership – Associate levelOne BlackBerry PlayBook and One BlackBerry Smartphone$100 BlackBerry accessory gift certificateOne Recognition Award per region (value ~US $8K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 1 week (if applicable to application)One BlackBerry PlayBook and One BlackBerry Smartphone
  • Submission incentiveFirst 100 submissions to each competition and BlackBerry App World (value ~US $6K):BlackBerry App World carousel placement for 1 weekOne BlackBerry SmartphoneTop Three Competition Winners per regionGrand Prize Winner (value ~US $33K)Trip for two to local BlackBerry developer conference, accommodation and developer conference passesMedia press packageBlackBerry App World carousel placement for 3 weeksBlackBerry Alliance Membership – Elite levelOne BlackBerry PlayBook and Three BlackBerry Smartphones$1000 BlackBerry accessory gift certificateTop Three Competition Winners per regionFirst Runner-Up (value ~US $18K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 2 weeksBlackBerry Alliance Membership – Select levelOne BlackBerry PlayBook and Two BlackBerry Smartphones$500 BlackBerry accessory gift certificateSecond Runner-Up (value ~US $10K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 1 weekBlackBerry Alliance Membership – Associate levelOne BlackBerry PlayBook and One BlackBerry Smartphone$100 BlackBerry accessory gift certificateOne Recognition Award per region (value ~US $8K)Two local BlackBerry developer conference passesMedia press packageBlackBerry App World carousel placement for 1 week (if applicable to application)One BlackBerry PlayBook and One BlackBerry Smartphone

Desarrollo con AIR para Playbook Desarrollo con AIR para Playbook Presentation Transcript

  • Desarrollo con AIR para Playbook
    Memo Döring
    [Logo (opcional)]
  • Introduction
    Memo Döring
    LATAM Team Lead, Developer Relations RIM
    @memodoring
  • What is the BlackBerry PlayBook?
    • 1 GHz dual core processor
    • 1 GB Ram
    • 7" LCD display, 1024 x 600 screen resolution
    • 1080p HD video; H.264, MPEG4, WMV HDMI video output
    • High fidelity WebKit browser
    • Full Adobe® Flash® 10.1 support
    • High definition cameras
    • 3MP front facing
    • 5MP rear facing
    • Wi-Fi® 802.11 a/b/g/n
    • Micro USB and Micro HDMI
    • Weighs 0.9 lbs (400g)
  • What is the BlackBerry PlayBook?
    Pair BlackBerry PlayBook with a BlackBerry Smartphone
    • Push Technology
    • Email, Calendar, BBM and more
    Ideal for games, media, apps and uncompromised Internet
    • OpenGL Acceleration
    Powerful QNX technology
    • True multi-tasking
    • What the web runs on!
    Unleashing The Whole Web, At Blazing Speeds
  • Setting Up your Environment
    Downloads
    Flash Builder 4.5
    Tablet OS SDK
    VM Ware Fusion
    www.blackberry.com/developers/tabletos
    Code Signing
    https://www.blackberry.com/SignedKeys/
    App World
    www.blackberry.com/developers/appworld/
  • Setting Up your Environment
  • Setting Up your Environment
    The Simulator
    In VMware Fusion, click File > Open.
    On the Open screen, navigate to the location where you installed the BlackBerry® Tablet OS SDK forAdobe® AIR®.
    The default location is /Developer/SDKs/Research In Motion/blackberry-tablet-sdk-<version>/BlackBerryPlayBookSimulator-<version>.
    Select the BlackBerryPlayBookSimulator.vmx file.
    Click Open.
    Click OK
  • 8
  • Creating Your First App
    Flash Builder project
    http://bit.ly/PBfirstapp
    Signing setup
    http://bit.ly/PBsignapp
  • blackberry-tablet.xml
    Used to specify platform specific items
    Customize your splash screen
    Customize your app icon
    Set app capabilities
    Set Publisher tag for signing
  • blackberry-tablet.xml
    Custom App Icon
    <icon><image>someicon.png</image></icon>
    Path is relative to the root of your app
    Icon should be 86x86
    Anything bigger than 90x90 will be ignored
  • blackberry-tablet.xml
    Custom Splash Screen
    <splashscreen>landscape.png:portrait.png</splashscreen>
    Image path relative to app root folder
    Images should be 1024x600 and 600x1024
  • blackberry-tablet.xml
    Application Capalbilites
    <permission>use_camera</permission>
    <permission>read_geolocation</permission>
    <permission>play_audio</permission>
    <permission>access_internet</permission>
    <permission>access_shared</permission>
    <permission>record_audio</permission>
    <permission>set_audio_volume</permission>
    <permission>read_device_identifying_information</permission>
  • Application and System States
    App States (Dispatched by NativeApplication)
    • Activated – Standard AIR Event – Event.ACTIVATE
    • Deactivated – Standard AIR Event – Event.DEACTIVATE
    System States (Dispatched by QNXSystem)
    • Active – QNXSystemEvent.ACTIVE
    • Standby – QNXSystemEvent.STANDBY
    Default behaviour for Deactivated apps and System Standby is to switch app to a lower power mode
  • Application and System States
    Power Modes
    • Normal - periodic timer that runs at the frame rate
    • Throttled - rendering is disabled and the periodic timer runs at a maximum of 4Hz
    • Standby - rendering is disabled the AIR timer is stopped entirely
  • Application and System States
    Automatic Mode changes (app descriptor file
    <qnx><inactivePowerMode>throttled</inactivePowerMode></qnx>
    Programmatically change current mode
    QNXSystem.system.powerMode = QNXSystemPowerMode.NORMAL;QNXSystem.system.powerMode = QNXSystemPowerMode.THROTTLED;QNXSystem.system.powerMode = QNXSystemPowerMode.STANDBY;
    Transition Time
    You can set the time that the Deactivate state takes to take effect
    QNXSystem.system.transitionTime = 3000;
    Allows for you to finish animations, save state or any last cleanup;
  • A Touch-centric App
    17
  • A Touch-centric App
    18
  • A Touch-centric App
    Adding a swipe gesture
    //Top down swipe is left for developers to implement an
    //application menu
    private _menu:MyMenuBar; //Custom menu bar
    private function init():void {
    _menu.initializeUI();
    app.addEventListener(QNXApplicationEvent.SWIPE_DOWN,
    swipeDown);
    }
    private function swipeDown(e:QNXApplicationEvent):void {
    if(! _menu.isVisible()) {
    _menu.show();
    }
    }
    19
  • A Touch-centric App
    20
  • A Touch-centric App
    Keeping the Backlight On
    The maximum supported size of a BlackBerry® Tablet OS
    BlackBerry PlayBook.  Adobe® AIR® applications can override this backlight time-out period value and keep the screen on indefinitely
    if(keepLightOn) {
    NativeApplication.nativeApplication.systemIdleMode= SystemIdleMode.KEEP_AWAKE;

    else {
    NativeApplication.nativeApplication.systemIdleMode= SystemIdleMode.NORMAL;
    }
    21
  • File Access
    Applications will be run in the directory we call "sandbox” and should not attempt to access any files outside of this directory.
     
    Sandbox structure
    •   app – app/air is read only link to where application files are installed
    •   data – read/write access area. $HOME envvar is set to this directory
    •   tmp – system may remove files stored here any time app is not running
    •   logs - stdin and stdout redirected to logs/log file; stores "core" files
    •   shared - link to common location where all apps share files
     
    App/data/tmp/logs are the app's private directories
     
  • File Access
    File class mapping:
    Shared file structure:
    • photos
    • bookmarks
    • misc
    • books
    • documents
    • voice
    • downloads
    • music
    • videos
  • File Access
    Applications will be run in the directory we call Users must grant your application access to the above folders within the shared directory.
    To request access, you need to include the following snippet in your blackberry-tablet.xml file. 
     
    <qnx>
         <action>access_shared</action>
     </qnx>
     
     
  • Device Information
    • Battery level
    • Battery state
    • Hardware ID
    • Device OS
    • Device PIN
    • Platform Version
    • Vendor ID
    • Capture battery events for app lifecycle
    • Identify your users based on PIN
    • Identify the Device OS for functionality
  • Device Information
  • Device Information
    • Monitor battery levels for power consumption in your app
    • Customize your app to provide the user experience
    • Display battery and charging information from your app
  • Camera Capabilities
    • Camera class support
    • Ability to choose rear or front facing camera
    • Camera UI class
    • Ability to launch camera and take a picture of video
    • CameraRoll class
    • Ability to select an image from the camera roll
    • Ability to add an image to the camera roll
  • App World
    Key Statistics
    3 million Average Daily Downloads
    35 million Downloads of App World client
    Available in 100+ Countries
    6 Languages –(EFIGS, Brazilian Portuguese)
    26 Currencies
    Carrier Billing with multiple major carriers
    Over30,000 apps available for download or purchase including2,000+ apps for BlackBerry PlayBook
    FREE to register as a vendor and FREEto submit apps and upgrades
  • App World
    • Credit Card and Carrier Billing introduced in August 2010 to add to consumer payment method options
    • 82% increase in gross sales with launch of AT&T carrier billing in App World 2.0
    • Working with our carrier partners to expand support for carrier billing
  • App World
    Indonesia ranks 5th, Mexico ranks 8th, and Australia ranks 10th for global sales after less than 30 days
    LATAM and APAC consumers are growing opportunities for revenue
    New countries in the top 25
    Australia, South Africa, India, Turkey, Brazil, Singapore, Japan, Malaysia, Switzerland, South Korea, Thailand, Colombia, Venezuela, Ecuador
  • Getting Started
    Download Tools, Sample Code, Docs, and Videos
    BlackBerry® Developer Zone www.blackberry.com/developers
    Ask for help
    Support Forums supportforums.blackberry.com
    Issue Tracker blackberry.com/developers/issuetracker
    Stay In Touch
    Twitter® @BlackBerryDev
    Blog devblog.blackberry.com
    Get Connected
    Developer Groups blackberry.com/developers/community
    Alliance Program blackberry.com/partners
  • 2011 BlackBerry Developer Challenge
    $3M USD in Prizes – Biggest Challenge Ever!
    Series of Three Global Competitions
    • Best Adobe Flash or Adobe AIR app (Now Open! April 28 – August 12, 2011)
    • Most innovative BlackBerry WebWorks app on BlackBerry PlayBook tablets and BlackBerry 6 (Opens May 9 – August 26, 2011)
    • Most addicting social app using the BBM Social Platform (Opens Summer 2011)
    • www.blackberrypartnersfund.com/challenge
  • 2011 BlackBerry Developer Challenge
    New - Six Special Recognition Awards
    Best B2C application developed for a customer by an Agency or ISV
    Most useful enterprise application
    Best website conversion using the BlackBerry WebWorks platform
    Most creative implementation of Super App characteristics
    Top Performers – Most Innovative use of BlackBerry Payment Service and/or Advertising Service
    Academic – Most compelling application created by student or faculty
  • BlackBerry Developer Conferences
  • Thank You.
    36