Planning Better BlackBerry PlayBook Applications

2099 days ago, 666 views
PowerPoint PPT Presentation
Attributes of the BlackBerry PlayBook. Seven inch screen size. Multi touch interface ... Drag or swipe from the base of the screen. This activity shows the ...

Presentation Transcript

Slide 1

Planning Better BlackBerry PlayBook Apps

Slide 2

Characteristics of the BlackBerry PlayBook Seven creep screen estimate Multi touch interface Landscape or representation show Virtual console

Slide 3

Make a touch driven application

Slide 4

On screen associations

Slide 5

Notifications and Indicators Application tells show up in the upper left corner of the screen Inform clients about application particular occasions, for example, new mail messages Status markers show up in the upper right corner of the screen Display framework status data, for example, battery power and remote association

Slide 6

API's to fabricate incredible applications

Slide 7

Adding a swipe motion

Slide 8

Adding a swipe signal

Slide 9

Device Information

Slide 10

Device Information Battery level Battery state Hardware ID Device OS Device PIN Platform Version Vendor ID Capture battery occasions for application lifecycle Identify your clients in view of PIN Identify the Device OS for usefulness

Slide 11

Activity Indicator give visual advance criticism to the client amid tedious operations

Slide 12

Battery Level and Events Monitor battery levels for power utilization in your application Customize your application to give the client encounter Display battery and charging data from your application

Slide 13

Battery Level and Events

Slide 14

Database SQLite is an in-process library that executes an independent, serverless, zero-setup, value-based SQL database motor. Information is put away in a record on the framework, ordinary the designer stores it in File.applicationStorageDirectory. DB PlayBook AIR Application File

Slide 15

AIR SQLite APIs SQLConnection open() – Synchronous openAsync() – Asynchronous loadSchema() – Database pattern Can Encrypt information on plate. SQLStatement content – SQL summons execute() SQLError points of interest/detailsID – SQL mistake message operation – SQL charge bringing about blunder

Slide 16

Shared Object

Slide 17

AIR File APIs File File.applicationStorageDirectory - a capacity index one of a kind to each introduced AIR application File.applicationDirectory - the read-just registry where the application is introduced (alongside any introduced resources) File.desktopDirectory, File.documentsDirectory, File.userDirectory Properties: exists, isDirectory, nativePath, expansion, name, … Methods: browseForOpen, browseForSave, getDirectoryListing(), … FileStream writeObject() – Uses AMF to compose paired serialization of question. open() – Synchronous openAsync() – Asynchronous

Slide 18

Alert Dialog

Slide 19

Skinning QNX UI Components

Slide 20

Skinning Basics Skin alternatives Global topics Set particular segment skins parts Skin states Methods of making Skins Bitmaps with or without scale framework Display objects utilizing design API QNX skin resources accessible for reuse

Slide 21

PlayBook Themes PlayBook accompanies 2 Themes: White (default) & Black

Slide 22

PlayBook Themes Example 2

Slide 23


Slide 24

Skin States SkinStates.DISABLED SkinStates.DISABLED_SELECTED SkinStates.DOWN SkinStates.DOWN_SELECTED SkinStates.FOCUS SkinStates.SELECTED SkinStates.UP SkinStates.UP_ODD

Slide 25

Component Skin Parts DropDown setBackgroundSkin() setButtonSkin() setListSkin() ToggleSwitch setFillSkin() setThumbSkin() setTrackSkin() Button setSkin() TextInput setSkin()

Slide 26

Setting a Skin Set skin strategy ordinarily takes these sorts: Class reference String of qualified class name DisplayObject occasion

Slide 27

Bitmaps with Slice 9 Scaling Use Case: Custom TextInput picture that scales Up/Down skin picture Focus skin picture

Slide 28

Skin Code: OddShapeSkin.png OddShapeSkinFocus.png

Slide 29

Drawing API Use Case: Custom TextInput with attracting API Need to overhaul at whatever time the width/stature changes

Slide 30

Skin Code:

Slide 31

Skin Code:

Slide 32

Q&A Thank You!