Simple stocklist demo application showing integration between the BlackBerry 10 SDK for Adobe AIR and the Lightstreamer Flex Client.
ActionScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/stocklistdemo
.gitignore
LICENSE
README.md
StockListDemo-app.xml
bar-descriptor.xml
icon_image.png
logo.png
screenshot.png
screenshot_small.png

README.md

Lightstreamer - Basic Stock-List Demo - BlackBerry (AIR) Client

This demo shows how to use the Lightstreamer Flex Client library and the BlackBerry 10 SDK for Adobe AIR to create a simple streaming-enabled application.

screenshot

Details

Real-Time simulated Stock-List data is received from the Lightstreamer Server deployed @ http://push.lightstreamer.com

Build

There are different ways to compile and run an AIR application for BlackBerry 10. This README will focus on the use of the command line tools. Feel free to check the other possibilities

Prepare the BlackBerry 10 environment as described on their documentation site. Namely:

Keep track of the location of the BlackBerry 10 SDK for Adobe AIR as it will be needed soon.

Download the Lightstreamer distribution and copy the Lightstreamer_as_client.swc file from the Lightstreamer Flex Client SDK (that is located under the DOCS-SDKs/sdk_client_flex/lib folder) into the lib folder of this project.

Being $BB the folder where your BlackBerry 10 SDK for Adobe AIR was installed, run

$BB/bin/amxmlc -library-path+=lib/Lightstreamer_as_client.swc -source-path=src -output=StockListDemo.swf -- src/stocklistdemo/StockListDemo.as

a new StockListDemo.swf file will be created containing your air application

Package and Run

Start the BlackBerry 10 Simulator and take note of the IP address (check the bottom-left of the window the simulator is in)

Being $BB the folder where your BlackBerry 10 SDK for Adobe AIR was installed and $IP the IP address of the simulator, run

$BB/bin/blackberry-airpackager -package StockListDemo.bar -installApp -launchApp -device $IP -forceAirVersion 3.1 -ane $BB\frameworks\libs\qnx\ane\QNXSkins.ane StockListDemo-app.xml bar-descriptor.xml StockListDemo.swf icon_image.png logo.png

A new StockListDemo.bar file will be created and deployed on the simulator. Note that the application will also be automatically launched.

See Also

Lightstreamer Adapters Needed by This Demo Client

Lightstreamer Compatibility Notes

  • Compatible with Lightstreamer Flex Client library version 2.1 or newer.
  • For Lightstreamer Allegro (+ Flex Client API support), Presto, Vivace.