www.pubnub.com - PubNub Real-time Push Service in the Cloud.
Please reference the demo app source code for examples of supercharging your Blackberry app with PubNub!
Checkout the video walkthrough before proceeding to get an idea of how it works.
Follow this HOWTO step-by-step to setup the demo PubNub app for Blackberry from within Eclipse.
a. Open the Eclipse (Blackberry Java Plugin)
b. Goto File -> New -> Blackberry Project
c. Enter a project name ( for this example, we'll use PubnubExample ) and click Next
Your screen should look similar to:
d. Click "Link additional Source"
e. Browse to and select java/blackberry/3.4/examples/PubnubExample/src
and enter Folder name as src1
Your screen should look similar to:
f. Click "Finish"
g. Select the Libraries tab
h. Click "Add External JARs"
i. Select bouncycastle.jar
and Pubnub-Microedition-3.7.x.jar
from libs
Your screen should look similar to:
j. Go to the "Order and Export" tab and check the boxes against bouncycastle.jar and Pubnub-Microedition-3.7.x.jar.
k. Click "Finish"
Your screen should look similar to:
and the "Project View" should look like this when "src1" and "Referenced Libraries" are expanded:
l. Create a Run Configuration by clicking Run -> Run Configurations from the menu
m. Select Blackberry Simulator, right-click, and select New
You will now have access to some new tabs.
n. Click the "Projects" tab
o. Check the box against PubnubExample
p. Click the "Simulator" tab, and confirm the Launch Mobile Data System Connection Service (MDS-CS) with simulator checkbox is selected
q. Change the configuration name to PubnubExample
r. Click "Apply"
s. Right click PubnubExample in package explorer.
t. Select Run As -> Blackberry Simulator
This will start MDS on command prompt and Blackberry Simulator
NOTE: MDS may need to be manually started by running run.bat located at Eclipse\plugins\net.rim.ejde.componentpack7.1.0_7.1.0.10\components\MDS
u. The MDS console will display debug information as the simulator phone boots.
v. Once the simulator has booted, scroll to and select PubnubExample (it will have the default “App Window” icon)
w. Run it, and select the menu button to see it run various PubNub for Blackberry API methods.