The BlackBerry PlayBook is expected to be a killer tablet. It features a wide range of features and the ability to make native apps in a variety of languages including Adobe AIR.
2. Agenda
• Screen interactions
• Device APIs to make great apps
• Device integration
• Offline storage
• Event listeners
• Skinning UI components
• Themes
• Skinstates
• Methods of skinning
• Resources and support
2
3.
4. Characteristics of the BlackBerry
PlayBook
• Seven inch screen size
• Multi touch interface
• Landscape or portrait display
• Virtual keyboard
4
5. Make a touch centric app
User Action Result Type Color
Drag or swipe from the top This action displays the application-specific Red
of the screen menu
Drag or swipe from the This action displays the system-wide Purple
bottom of the screen navigator
Drag or swipe from the left This action switches system-wide Blue
or right side of the applications
screen
5
6. On screen interactions
User Action Result
Tap the screen Initiates an action in the app
This action moves the content on the screen
in the direction of the drag
Drag or swipe across the screen
or swipe and at the corresponding rate of
speed
This action highlights a sequence of
Touch and hold a finger on an item. characters, a word, a link, or an item
such as an email message or picture.
These actions zoom in to and out from an
Pinch open or pinch close.
item
6
7. Notifications and Indicators
• Application notifies appear in the top left corner of the screen
• Inform users about app-specific events such as new mail
messages
• Status indicators appear in the top right corner of the screen
• Display system status information such as battery power and
wireless connection
7
8. Adobe Runtimes – Flash Player & AIR
AIR SDK Tablet OS SDK
ActionScript BlackBerry PlayBook
SWF
Application (.bar)
9. PlayBook AIR SDK Capabilities
• Hardware acceleration
• Web View to display HTML and Flash content
• UI components built specifically for the touch screen
• APIs for front and rear facing cameras, accelerometer, in-app
payments and more
• Application notifications
9
10. PlayBook AIR SDK Capabilities
• Extend Adobe AIR applications to use native C++ extensions
• Porting existing Adobe AIR and Flash applications quickly and easily
10
11. Bring existing AIR apps to the
BlackBerry PlayBook
• Create the proper directory structure
• Create the app.xml file
• Package the SWF and app.xml file through the command line tool
• Deploy to your BlackBerry PlayBook!
ActionScript BlackBerry PlayBook
SWF
Application (.bar)
16. Device Information
• Battery level • Capture battery
• Battery state events for app
• Hardware ID lifecycle
• Device OS • Identify your users
based on PIN
• Device PIN
• Identify the Device
• Platform Version OS for functionality
• Vendor ID
16
17. Battery Level and Events
• 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
17
19. Database
• SQLite is a in-process library that implements a self-contained,
serverless, zero-configuration, transactional SQL database engine.
• Data is stored in a file on the system, typical the developer stores it
in File.applicationStorageDirectory.
DB
PlayBook AIR Application File
20. AIR SQLite APIs
• SQLConnection
• open() – Synchronous
• openAsync() – Asynchronous
• loadSchema() – Database schema
• Can Encrypt data on disk.
• SQLStatement
• text – SQL commands
• execute()
• SQLError
• details/detailsID – SQL error message
• operation – SQL command causing error
26. Skinning Basics
• Skin options
• Global themes
• Set specific component skins parts
• Skin states
• Methods of creating Skins
• Bitmaps with or without scale grid
• Display objects using graphics API
• QNX skin assets available for reuse
26