Blackberry Messenger Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel Blackberry Messenger. Developing Socially Connected Apps with the BlackBerry Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 11
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
http://cmer.uoguelph.ca 1
Developing Socially Connected Apps with the BlackBerry Messenger API
Lab # 2: Creating a BBM Enabled Application with WebWorks
The objective of this lab is to walk you through the steps required to convert any existing
BlackBerry WebWorks application to a BBM enabled application using the BlackBerry
Messenger (BBM) SDK. For this lab, we will be converting a Tic Tac Toe game into a
game which posts the players progress on their BBM profile.
Step 1: Take a look at what we have so far
In Lab 1, you set up your development environment in a way that you can develop BBM
enabled applications. Let’s go through some steps to setup the application to use the API.
You can choose to develop the lab within Eclipse or any other programming environment
of your choice. The screenshots included in the lab will be from the Eclipse development
environment.
Before we make any changes to the application, let’s load the application into the
Simulator to see how it looks and works beforehand.
First, compile the application. In order to compile the application, you will need to zip all
the files in your project. After zipping, the ‘bbwp’ file must be used in order to convert
all project files into a .cod file for loading into the simulator.
If you have WinRAR installed, zipping and compiling the application can be done with
the following commands. Note that the build folder must be created in your project
directory before the commands can be executed.
o cd C:\Users\Administrator\workspace\TicTacToeBBM
o "C:\Program Files\WinRAR\winrar.exe" a -afzip
build\TicTacToeBBM.zip * css\* script\* -x.project -m0
o Cd C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks
SDK 2.3.1.5
o bbwp C:\Users\Administrator
\workspace\TicTacToeBBM\build\TicTacToeBBM.zip /o C:\Users\
Administrator \workspace\TicTacToeBBM\build
The result of the command line window should look close to the following:
The result of these commands will place a BBMTicTacToe.cod file in the build directory
where your project files are located. Let’s see how the application looks on the simulator.
Vue de la page 0
1 2 3 4 5 6 ... 10 11

Résumé du contenu

Page 1

http://cmer.uoguelph.ca 1 Developing Socially Connected Apps with the BlackBerry Messenger API Lab # 2: Creating a BBM Enabled Application with W

Page 2

http://cmer.uoguelph.ca 10 if(triesCounter%5==0) { var itemText = "Has tried to beat the unbeatable Tic Tac Toe game "+triesCounter

Page 3

http://cmer.uoguelph.ca 11 } }  Recompile and run the application again and play a few games. Afterwards, open the BBM profile again. You’ll

Page 4

http://cmer.uoguelph.ca 2  Open the simulator by navigating to the folder where you installed the BBM enabled simulators (default i

Page 5 - <feature

http://cmer.uoguelph.ca 3  After you’ve finished experimenting with the application, it’s time to begin integrating this fantastic game wit

Page 6

http://cmer.uoguelph.ca 4  This function is used to reset the board, and initialize all variables. The first thing that will need to be added t

Page 7

http://cmer.uoguelph.ca 5  The last step that will need to be added in the setupApplications function is to clear the profile box of any old en

Page 8

http://cmer.uoguelph.ca 6 showBBMAppOptionsAndRegister next which will prompt the user to reconnect the application to BBM after we fini

Page 9

http://cmer.uoguelph.ca 7 /** * Returns an access status message to be displayed to the user. * @param {String} status The status code. */ fun

Page 10

http://cmer.uoguelph.ca 8 the application to BBM. A BlackBerry ID can be obtained by visiting http://us.blackberry.com/id/ if you don

Page 11

http://cmer.uoguelph.ca 9  Now that we know how to post message to the profile, we can use this knowledge to post more messages about the user’

Commentaires sur ces manuels

Pas de commentaire