43
Building Apps for BlackBerry PlayBook Terry Ryan Adobe Developer Evangelist http://terrenceryan.com @tpryan

Developing Apps for the BlackBerry PlayBook

Embed Size (px)

DESCRIPTION

Using Adobe AIR to write apps for the BlackBerry PlayBook

Citation preview

Page 1: Developing Apps for the BlackBerry PlayBook

Building Apps for BlackBerry PlayBook

Terry RyanAdobe Developer Evangelisthttp://terrenceryan.com@tpryan

Page 2: Developing Apps for the BlackBerry PlayBook

I work for Adobe

Not for RIM

Page 3: Developing Apps for the BlackBerry PlayBook

Why am I here?

Page 4: Developing Apps for the BlackBerry PlayBook
Page 5: Developing Apps for the BlackBerry PlayBook

The PlayBook

Page 6: Developing Apps for the BlackBerry PlayBook

HardwareDimentions Height 5.1” / 130mm Width 7.6” / 194mm Depth 0.4” / 10mm Weight 0.9 lbs /400g

Performance 7” LCD display 1024 x 600 Multi-touch capacitive screen 1 GHz dual-core processor 1 GB RAM Symmetric multi-processing

Media 3 MP forward facing camera 5 MP rear-facing camera 1080p HD video; H.264, MPEG4,

WMV HDMI video output (full OS output,

not limited to image/video) Stereo sound speakers

Connections Micro USB and Micro HDMI ports Wi-Fi® 802.11 a/b/g/n Bluetooth ® 2.1 +EDR

Page 7: Developing Apps for the BlackBerry PlayBook

BlackBerry Tablet OS

BlackBerry Tablet OS

• Based on QNX® Neutrino® RTOS

• Reliable, high-performance kernel engineered for multi-core hardware

• Multi-threaded POSIX OS (Portable Operating System for Unix) for true multitasking

Developer Options• Tablet OS SDK for Adobe AIR• Browser based

• Flash Player 10.1• HTML 5

• WebWorks for Tablet OS• Native C/C++ Open GL SDK

(tbd)• Java SDK (tbd)• Android dealio (tbd)

Page 8: Developing Apps for the BlackBerry PlayBook

AIR SDKAIR SDK• Used in default

Applications

Page 9: Developing Apps for the BlackBerry PlayBook

Adobe AIR

Page 10: Developing Apps for the BlackBerry PlayBook

What is AIR?

Page 11: Developing Apps for the BlackBerry PlayBook

AIR is Flash outside the browser

Page 12: Developing Apps for the BlackBerry PlayBook

Has hooks to interact with the system

Page 13: Developing Apps for the BlackBerry PlayBook

Flash on Mobile

Flash Player 10.1 + • In-browser content• Games, video• Deploy as a SWF,

put on the web• Currently 10.2

Air 2.5 + • Mobile applications• Native APIs, extra

functionality• Package to target

individual devices

Page 14: Developing Apps for the BlackBerry PlayBook

AIR for Desktop

app.air

Page 15: Developing Apps for the BlackBerry PlayBook

AIR for Devices

app.bar

app.apk

app.ipa

Page 16: Developing Apps for the BlackBerry PlayBook

“Native Application”

• AIR for Device Applications are “Native”• That means they can

be put on app stores• NOT that the UI

components are native

Page 17: Developing Apps for the BlackBerry PlayBook

We can use Flash to build “native applications”

Page 18: Developing Apps for the BlackBerry PlayBook

Except on the PlayBook

Page 19: Developing Apps for the BlackBerry PlayBook

On PlayBook AIR = Native Applications

not “Native Applications”

Page 20: Developing Apps for the BlackBerry PlayBook

Why Flash on Devices

Page 21: Developing Apps for the BlackBerry PlayBook

AIR is MultiScreen

Page 22: Developing Apps for the BlackBerry PlayBook

Is it “write once, run

everywhere”?

Page 23: Developing Apps for the BlackBerry PlayBook

No

Page 24: Developing Apps for the BlackBerry PlayBook

Write once, tweak and configure everywhere

Page 25: Developing Apps for the BlackBerry PlayBook

Developing

Page 26: Developing Apps for the BlackBerry PlayBook

Roll your own ActionScript UI

QNX UI Framework

Flex Mobile UI Framework

Page 27: Developing Apps for the BlackBerry PlayBook

QNX

Pros

• Low Level• High

Performance• Default UI• Complete UI

Cons• Limits app to

PlayBook• Data components

not as rich as UI

Page 28: Developing Apps for the BlackBerry PlayBook

Demo

Getting Started with QNX

Page 29: Developing Apps for the BlackBerry PlayBook

Flex

Pros

• Higher Level• Slight

Performance Cost

• Rich Data model

Cons• UI options aren’t as

Rich

Page 30: Developing Apps for the BlackBerry PlayBook

Demo

Going a little further with Flex

Page 31: Developing Apps for the BlackBerry PlayBook

The Spectrum of Frameworks

Performance - Simplicity

Features - Complexity

Advantages Same components

native apps are using Performance Basic skinning,

container, layout and invalidation

Advantages CSS Skinning Model

(Complex but more robust, with tooling)

Application Framework

Binding/MXML Extensive layout and

container classes Invalidation and

component life cycle More components

Page 32: Developing Apps for the BlackBerry PlayBook

Roll your own

Pros

• Extreme Performance

• Great for traditional Flashers

Cons• Lot of work• Not so hot for

traditional coders

Page 33: Developing Apps for the BlackBerry PlayBook

AIR APIs

Accelerometer CameraRol l CacheAsBitMapMatr ix GeoLocat ion Touch, Mult iTouch, and Gesture StageOr ientat ion SystemIdleMode NavigateToURL

Page 34: Developing Apps for the BlackBerry PlayBook

PlayBook APIs

qnx.media.QNXStageWebView StageWebView with more integrat ion into the webkit on

the P layBook qnx.system.QNXAppl icat ion

Bevel swipe down event qnx.system.Device

Battery level , s tate, and monitor Device info (bsn, hardwareID, vendor ID, etc…)

qnx.media.MediaPlayer Hardware accelerated play black of media and other non-

F lash supported codecs Not ifi cat ions* Extending AIR app with Nat ive C/C++ app*

Page 35: Developing Apps for the BlackBerry PlayBook

Conclusions

Page 36: Developing Apps for the BlackBerry PlayBook

Powerful Hardware

Page 37: Developing Apps for the BlackBerry PlayBook

Opportunity for profitability

Page 38: Developing Apps for the BlackBerry PlayBook

Low barriers to entry

Page 39: Developing Apps for the BlackBerry PlayBook

MultiScreen is real

Page 40: Developing Apps for the BlackBerry PlayBook

Next Steps

Page 41: Developing Apps for the BlackBerry PlayBook

AvailabilityFlex and Flash Builder 4.5• BlackBerry

– ActionScript Only– QNX

• Android– ActionScript Only– Flex

• IOS– ActionScript Only

Flex and Flash Builder 4.5.1

• BlackBerry– ActionScript Only– Flex– QNX

• Android– ActionScript Only– Flex

• IOS– ActionScript Only– Flex

First Week of May Mid June

Page 42: Developing Apps for the BlackBerry PlayBook

Get started

• http://bit.ly/AdobePlaybook–Flash Builder 4.5 Beta–PlayBook AIR SDK–PlayBook Simulator–Adobe Developer Center

Page 43: Developing Apps for the BlackBerry PlayBook

Follow up?

• Feel free to contact me–[email protected]–http://terrenceryan.com–Twitter: @tpryan