Monday 30 May 2011

BlackBerry Simulators


The BlackBerry device simulator is designed to emulate a true BlackBerry experience without actually using a real BlackBerry device. The BlackBerry device simulator is an application that you install on your computer that shows an image of the BlackBerry device model of your choice. This image has the look and feel of an actual BlackBerry device. The functionality includes the same user interaction of an actual BlackBerry device (including the trackwheel and the keyboard), the same applications, and the same features such as email messages, phone, and Internet browsing. The BlackBerry device simulator also serves as a platform on which applications can run. This includes the ability for the applications to make network connections, store data, and handle email messages.

Start the device simulator

The BlackBerry® device simulator is available either as a part of the BlackBerry Java Development Environment or as a standalone installation of the BlackBerry simulator package. Visit http://us.blackberry.com/developers/resources/simulators.jsp for more information about downloading the BlackBerry device simulator.

Start the BlackBerry device simulator from the BlackBerry JDE

Ø       On the taskbar, click Start > Programs > Research In Motion > BlackBerry JDE 4.2.0 > Device Simulator

Start the BlackBerry device simulator from a Simulator Package

Ø       On the taskbar, click Start > Programs > Research In Motion > BlackBerry Device Simulators 4.2.0 > Device Simulators 4.2.0 XYZ > <device_name>.

 Using the BlackBerry device simulator graphical user interface

Viewing or hiding the BlackBerry device image

By default, the BlackBerry® device simulator displays the BlackBerry device image. You can hide the BlackBerry device image so that only the LCD screen is visible.

Hide the BlackBerry device image

Ø       On the View menu, click LCD Only.

 View the BlackBerry device image in full-screen mode

Full-screen mode allows you to maximize the view of the BlackBerry® device simulator. You can view either the full BlackBerry device image or only the LCD image in full-screen mode. Since the BlackBerry device simulator only uses integral multiples of the simulated LCD’s resolution, different screen resolution settings may result in full-screen images that cover a larger percentage of the computer screen.

Ø       On the View menu, click Full Screen.

Access menu options in Full-Screen mode

You can access the menu items on the BlackBerry® device simulator’s menu items by moving the mouse to the top of the computer screen. The menu appears when the cursor is near the top of the computer screen.

Exit Full-screen mode

Ø      On the View menu, click Full Screen.

If you are viewing the LCD screen in full-screen mode, the LCD screen stretches to its optimal zoom-level and is padded with a black background. If you view the BlackBerry® device image in full-screen mode, the BlackBerry device image is centered and is padded with a white background.

Change the size of the BlackBerry device image

1.On the View menu, click Zoom.
2.Click a percentage.

Save a screen shot

Ø       On the Edit menu, click Save Device Snapshot or Save LCD Snapshot.

By default, the BlackBerry® device simulator saves the screen shot as the most suitable file type for the content of the image. The BlackBerry device simulator saves a screen shot of the BlackBerry device image as a .jpg file, and a screen shot of the LCD as a .png file. You can override the default if you click Browse and set a different file type in the Save as type field.


Copy a screen shot to the clipboard

Ø       On the Edit menu, click Copy Device Snapshot or Copy LCD Snapshot.




Using the BlackBerry device simulator input controls

Simulate the trackwheel and keys

Use the BlackBerry® device simulator trackwheel to simulate using the trackwheel on a BlackBerry device.

The BlackBerry device simulator assigns BlackBerry device functionality to the following computer keyboard and mouse procedures:


Action
Keyboard procedure
Mouse procedure
Roll the trackwheel.
Press the UP ARROW or DOWN ARROW key.
Roll the mouse wheel button.
Click the trackwheel.
Press the LEFT ARROW key.
Click the mouse wheel button.

Press the Escape key.
Press ESC or the RIGHT ARROW key.
Click the right mouse button.

Turn on BlackBerry device backlighting.
Press PAGE DOWN.
Click the Power button on the BlackBerry device simulator keyboard.

Press the Symbol key.
Press DELETE.
Click the Symbol key on the BlackBerry device simulator keyboard.

Press the Alt key.
Press CTRL.
Click the Alt key on the BlackBerry device simulator keyboard.

Press the BlackBerry device keys.
Press the keys on your computer keyboard.
Click the keys on the BlackBerry device simulator keyboard.

Press the phone/PTT (Push-to-TalkTM) button.
Press PAGE UP.
__


Testing applications that require an HTTP connection:

 Simulating the BlackBerry MDS Connection Service

The BlackBerry® MDS simulator is designed to simulate the BlackBerry MDS Connection Service component of the BlackBerry Enterprise Server. Using the BlackBerry device simulator with the BlackBerry MDS simulator enables you to test network, push, and browser applications that are designed for use with a BlackBerry Enterprise Server. If you are testing applications that require an HTTP connection, you will require the BlackBerry device simulator and the BlackBerry MDS simulator. The BlackBerry MDS simulator is available for download from the BlackBerry Developer Zone web site at http://us.blackberry.com/developers/resources/simulators.jsp

Starting the BlackBerry MDS Simulator

Ø       On the taskbar, click Start > Programs > Research In Motion > BlackBerry Email and MDS Services Simulators 4.1.2 > MDS.

Testing Starting the BlackBerry MDS Simulator

Ø       Start the BlackBerry device simulator.
Ø       In the BlackBerry device simulator, open the BlackBerry Browser.
Ø       Open the menu.
Ø       Click Go To.
Ø       Type http://www.blackberry.com/go/mobile/.
Ø       Click OK.

If the BlackBerry home page appears, the BlackBerry MDS simulator is working.
If an error message indicates that the browser cannot connect to the BlackBerry MDS simulator, verify that you started the BlackBerry MDS simulator





No comments:

Post a Comment