Tuesday 17 March 2009

Setup Blackberry demo on standalone PC

I recently had to setup a Blackberry demo onto a standalone laptop, the laptop was a clean install before starting.

I setup everything on the local computer, including Web Service, as it would not be connected to the internet or network.

To setup do the following:

  • Install appropriate .NET Framework.

  • Install IIS and run aspnet_regiis -i.

  • Install jdk-1_5_0_17-windows-i586-p.exe for use by simulator.

  • Install BlackBerry_Email_MDS_4.1.4.exe for MDS simulator to hit network.

  • Install BlackBerry_Simulators_4.5.0.55_8700-Vodafone.exe, or whichever simulator is to be used.

  • Install SQLServer onto laptop. Use either desktop engine and connect via IP Address and enterprise manager from own computer to create database, or install full developer edition with Enterprise Manager.

  • Create new copy of Web Service pointing at (local).

  • Create new copy of Blackberry app, only need to change the connection string in the main _Stub class. Use the laptops computer name as you can't use IP Address as it'll be offline and handset can't hit localhost or 127.0.0.1.

  • Move new .COD into the installation folder of the handset simulator.

  • Go to network connections on laptop and disable all connections (Right Click->Disable). Not sure why but when these are enabled and not connected to network the web service calls are very slow.

  • Run the MDS Simulator first and then open up handset simulator. Done!

I created a batch file to run the MDS and handset simulator:

@echo off
echo Running MDS Simulator...
cd C:\Program Files\Research In Motion\Blackberry Email and MDS Services Simulators 4.1.4\MDS
call run.bat
echo Running 8700 Simulator...
cd C:\Program Files\Research In Motion\Blackberry Smartphone Simulators 4.5.0\4.5.0.55 (8700-Vodafone)
call 8700-Vodafone.bat
pause

No comments:

Free Hit Counter