BB10 Device Simulator UG
BB10 Device Simulator UG
BB10 Device Simulator UG
Published: 2015-02-11
SWD-20150211094337191
Contents
BlackBerry 10 Device Simulator...................................................................................................................5
Getting started.............................................................................................................................................7
Configuring the simulator............................................................................................................................... 7
Configuring the BBM server simulator...........................................................................................................10
Using the simulator.................................................................................................................................... 13
Launching apps on the simulator ................................................................................................................. 13
Simulating gestures......................................................................................................................................13
Using mouse and touch inputs..................................................................................................................... 17
Using BlackBerry Classic trackpad and key inputs........................................................................................ 18
Changing simulated conditions.....................................................................................................................20
Simulating device movement........................................................................................................................22
Taking screen shots..................................................................................................................................... 23
Testing Bluetooth apps................................................................................................................................ 24
Testing GPS-enabled apps........................................................................................................................... 25
Testing NFC apps.........................................................................................................................................26
Simulating phone calls................................................................................................................................. 30
Using the camera.........................................................................................................................................30
Testing BBM connected apps.......................................................................................................................33
Legal notice............................................................................................................................................... 35
The BlackBerry 10 Device Simulator lets you load and test your apps even when you don't have a physical
device. You can access most of the features you would find on a physical device.
Using the simulator, you can use your mouse to simulate gestures, configure snapshots for debugging, and
simulate features such as tilting or rotating the device.
BlackBerry 10 Device Simulator User Guide PDF
Getting started
Install and configure the simulator. Connect to the simulator, and change the simulator device settings.
Start here to download, install, and configure your BlackBerry 10 Device Simulator. You can also learn how to
view and change the simulator device settings.
Getting started
If you are running multiple instances of the simulator, select the address of the simulator that you want to
control from the IP address drop-down list.
Note that the simulator's IP address is displayed in the bottom of the simulator window.
Note: At a 70% zoom level, the simulator fits on most computer monitors. This is the default zoom level.
Other options:
Use the diagonal bars on the lower right corner to drag the window to the size that you want. This will only
resize the simulator's window, but not the simulator.
Use the ves-zoom <percentage> command in a Telnet or Putty window.
Getting started
Note: Do not use the IP address (169.254 ) found under System Settings > Security and Privacy >
Development Mode for either Momentics IDE or to Telnet/FTP to the simulator.
Getting started
Install Java
The first thing you need to do is download and install the Java SE 6 update 37 or later (JDK or JRE, 32-bit or 64bit).
Note: The BBM server simulator does not support Java 7.
Next, you set up Java environment variables and unlimited strength encryption.
10
Note: You must live in an eligible country to enable this functionality. You can find more information in the
readme.txt file contained in the following .zip file.
1. Download the jce_policy-6.zip file from the Oracle website.
2. Extract the contents of the jce_policy-6.zip file to your computer.
3. In the security directory of the system JRE (for example, C:\Program Files (x86)\Java\jre6\lib\security\),
replace the local_policy.jar and US_export_policy.jar files with the files you extracted.
Getting started
11
Getting started
12
Simulating gestures
Here is your guide to navigating the simulator using your mouse to simulate touch screen gestures.
Be sure that you have set the right zoom level to see the top and bottom frames of the simulator without having
to scroll. For most computer screens, 70% zoom should fit.
13
Minimize an app
Jump to a screen
14
15
Multi-touch
Move apps
1. Tap and hold an app's icon until all of the icons blink.
2. Drag the icon to the new location.
3. When you are finished, tap anywhere in the screen.
16
2. Drag one icon on top of another to combine them into a new folder.
3. When prompted, enter a folder name.
Mouse Mode: Use both left and right clicks to represent default mouse clicks.
Touch Mode: Use left-clicks as single-touch events, and initiate multi-touch playback. Use right-clicks to
specify touch points for multi-touch simulation.
Mixed Mode: Use left-clicks to represent default clicks and to initiate multi-touch playback. Use right-clicks to
specify touch points for multi-touch simulation.
17
The Touch Area supports two types of touch input: swipes and single taps.
To perform a swipe, click and drag your mouse in the Touch Area.
To perform a single tap, click your mouse button in the Touch Area.
18
Click and hold your secondary mouse button on the Controller's trackpad area and drag your mouse to
navigate and scroll the simulator screen. Click your primary mouse button to simulate a trackpad click and
activate a highlighted item.
Button
Function
Answers a call.
Opens the Phone app.
Call key
Menu key
19
Button
Function
End key
20
21
22
23
Navigate to Edit virtual machine settings in your VMware Player and click Add.
Select USB Controller and click Next.
Click Finish, and then click OK.
Restart the simulator.
24
25
26
27
The provider device creates an RF carrier field and the target device answers by modulating the existing
field. In this mode, the target device draws operating power from the provider's field, such as between a
smartphone and an unpowered NFC tag. Tags may be read-only or read-writable. The simulator can
emulate a target as described in the NFC tag emulation mode and NFC smart poster mode sections below.
Active communication
Two devices can communicate as peers, as described in the NFC P2P support section below, by running
two simulators concurrently. Each simulator alternates between acting as a provider (generating its own
transmitting field) and a target (deactivating its field while listening).
There are three simulation components in the simulator:
Simulation provider
SimNFCProvider simulates OpenNFCProvider and the device driver. It implements NFC Provider
APIs, and communicates with the other two NFC components in the same way as OpenNFCProvider.
NFC simulation GUI
The GUI provides a means to simulate a peer device in an NFC simulation:
When simulating a tag reader/writer on the device, the GUI acts as a tag.
When simulating tag emulation on the device, the GUI acts as a tag reader/writer.
The NFC simulation GUI also allows you to control and configure NFC simulation.
Simulation connector
The connector simulates the NFC connection and events between the device and its peer in NFC
simulation. For tag reader/writer and tag emulation, it connects the simulator with the GUI. For peer-topeer simulation, it connects two simulators to each other.
No action
Launch the browser
Save for later (for example, bookmark a URI)
Edit for editing (for example, open the URI in a URI editor)
Using the simulator
28
29
30
31
32
33
6.
7.
8.
9.
Note: The IP address cannot be 127.0.0.1 or localhost, even if the BBM server simulator is running on the
same computer as the device simulator.
12.Click Connect.
When the connection is successful, you see activity in the BBM server simulator console.
13.In the device simulator, click the app that you want to run.
14.Repeat steps 1 to 13 for each additional instance of the simulator that you want to run.
For more information, see Testing BBM connected apps on page 33.
34
Legal notice
2015 BlackBerry. All rights reserved. BlackBerry and related trademarks, names, and logos are the
property of BlackBerry Limited and are registered and/or used in the U.S. and countries around the world.
AMD Virtualization and AMD Athlon are trademarks of Advanced Micro Devices, Inc. Bluetooth is a trademark
of Bluetooth SIG.Intel is a trademark of Intel Corporation. NVIDIA is a trademark of NVIDIA Corporation in the
U.S. and other countries. VMware Player is a trademark of VMware, Inc. All other trademarks are the property
of their respective owners.
This documentation including all documentation incorporated by reference herein such as documentation
provided or made available on the BlackBerry website is provided or made accessible "AS IS" and "AS
AVAILABLE" and without condition, endorsement, guarantee, representation, or warranty of any kind by
BlackBerry Limited and its affiliated companies ("BlackBerry") and BlackBerry assumes no responsibility for
any typographical, technical, or other inaccuracies, errors, or omissions in this documentation. In order to
protect BlackBerry proprietary and confidential information and/or trade secrets, this documentation may
describe some aspects of BlackBerry technology in generalized terms. BlackBerry reserves the right to
periodically change information that is contained in this documentation; however, BlackBerry makes no
commitment to provide any such changes, updates, enhancements, or other additions to this documentation
to you in a timely manner or at all.
This documentation might contain references to third-party sources of information, hardware or software,
products or services including components and content such as content protected by copyright and/or thirdparty web sites (collectively the "Third Party Products and Services"). BlackBerry does not control, and is not
responsible for, any Third Party Products and Services including, without limitation the content, accuracy,
copyright compliance, compatibility, performance, trustworthiness, legality, decency, links, or any other
aspect of Third Party Products and Services. The inclusion of a reference to Third Party Products and Services
in this documentation does not imply endorsement by BlackBerry of the Third Party Products and Services or
the third party in any way.
EXCEPT TO THE EXTENT SPECIFICALLY PROHIBITED BY APPLICABLE LAW IN YOUR JURISDICTION, ALL
CONDITIONS, ENDORSEMENTS, GUARANTEES, REPRESENTATIONS, OR WARRANTIES OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY CONDITIONS, ENDORSEMENTS,
GUARANTEES, REPRESENTATIONS OR WARRANTIES OF DURABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR USE, MERCHANTABILITY, MERCHANTABLE QUALITY, NON-INFRINGEMENT, SATISFACTORY
QUALITY, OR TITLE, OR ARISING FROM A STATUTE OR CUSTOM OR A COURSE OF DEALING OR USAGE OF
TRADE, OR RELATED TO THE DOCUMENTATION OR ITS USE, OR PERFORMANCE OR NON-PERFORMANCE
OF ANY SOFTWARE, HARDWARE, SERVICE, OR ANY THIRD PARTY PRODUCTS AND SERVICES
REFERENCED HEREIN, ARE HEREBY EXCLUDED. YOU MAY ALSO HAVE OTHER RIGHTS THAT VARY BY
STATE OR PROVINCE. SOME JURISDICTIONS MAY NOT ALLOW THE EXCLUSION OR LIMITATION OF
IMPLIED WARRANTIES AND CONDITIONS. TO THE EXTENT PERMITTED BY LAW, ANY IMPLIED
WARRANTIES OR CONDITIONS RELATING TO THE DOCUMENTATION TO THE EXTENT THEY CANNOT BE
EXCLUDED AS SET OUT ABOVE, BUT CAN BE LIMITED, ARE HEREBY LIMITED TO NINETY (90) DAYS FROM
THE DATE YOU FIRST ACQUIRED THE DOCUMENTATION OR THE ITEM THAT IS THE SUBJECT OF THE
CLAIM.
Legal notice
35
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW IN YOUR JURISDICTION, IN NO EVENT SHALL
BLACKBERRY BE LIABLE FOR ANY TYPE OF DAMAGES RELATED TO THIS DOCUMENTATION OR ITS USE,
OR PERFORMANCE OR NON-PERFORMANCE OF ANY SOFTWARE, HARDWARE, SERVICE, OR ANY THIRD
PARTY PRODUCTS AND SERVICES REFERENCED HEREIN INCLUDING WITHOUT LIMITATION ANY OF THE
FOLLOWING DAMAGES: DIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, INDIRECT, SPECIAL,
PUNITIVE, OR AGGRAVATED DAMAGES, DAMAGES FOR LOSS OF PROFITS OR REVENUES, FAILURE TO
REALIZE ANY EXPECTED SAVINGS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, LOSS
OF BUSINESS OPPORTUNITY, OR CORRUPTION OR LOSS OF DATA, FAILURES TO TRANSMIT OR RECEIVE
ANY DATA, PROBLEMS ASSOCIATED WITH ANY APPLICATIONS USED IN CONJUNCTION WITH
BLACKBERRY PRODUCTS OR SERVICES, DOWNTIME COSTS, LOSS OF THE USE OF BLACKBERRY
PRODUCTS OR SERVICES OR ANY PORTION THEREOF OR OF ANY AIRTIME SERVICES, COST OF
SUBSTITUTE GOODS, COSTS OF COVER, FACILITIES OR SERVICES, COST OF CAPITAL, OR OTHER SIMILAR
PECUNIARY LOSSES, WHETHER OR NOT SUCH DAMAGES WERE FORESEEN OR UNFORESEEN, AND EVEN
IF BLACKBERRY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW IN YOUR JURISDICTION, BLACKBERRY
SHALL HAVE NO OTHER OBLIGATION, DUTY, OR LIABILITY WHATSOEVER IN CONTRACT, TORT, OR
OTHERWISE TO YOU INCLUDING ANY LIABILITY FOR NEGLIGENCE OR STRICT LIABILITY.
THE LIMITATIONS, EXCLUSIONS, AND DISCLAIMERS HEREIN SHALL APPLY: (A) IRRESPECTIVE OF THE
NATURE OF THE CAUSE OF ACTION, DEMAND, OR ACTION BY YOU INCLUDING BUT NOT LIMITED TO
BREACH OF CONTRACT, NEGLIGENCE, TORT, STRICT LIABILITY OR ANY OTHER LEGAL THEORY AND
SHALL SURVIVE A FUNDAMENTAL BREACH OR BREACHES OR THE FAILURE OF THE ESSENTIAL PURPOSE
OF THIS AGREEMENT OR OF ANY REMEDY CONTAINED HEREIN; AND (B) TO BLACKBERRY AND ITS
AFFILIATED COMPANIES, THEIR SUCCESSORS, ASSIGNS, AGENTS, SUPPLIERS (INCLUDING AIRTIME
SERVICE PROVIDERS), AUTHORIZED BLACKBERRY DISTRIBUTORS (ALSO INCLUDING AIRTIME SERVICE
PROVIDERS) AND THEIR RESPECTIVE DIRECTORS, EMPLOYEES, AND INDEPENDENT CONTRACTORS.
IN ADDITION TO THE LIMITATIONS AND EXCLUSIONS SET OUT ABOVE, IN NO EVENT SHALL ANY
DIRECTOR, EMPLOYEE, AGENT, DISTRIBUTOR, SUPPLIER, INDEPENDENT CONTRACTOR OF BLACKBERRY
OR ANY AFFILIATES OF BLACKBERRY HAVE ANY LIABILITY ARISING FROM OR RELATED TO THE
DOCUMENTATION.
Prior to subscribing for, installing, or using any Third Party Products and Services, it is your responsibility to
ensure that your airtime service provider has agreed to support all of their features. Some airtime service
providers might not offer Internet browsing functionality with a subscription to the BlackBerry Internet
Service. Check with your service provider for availability, roaming arrangements, service plans and features.
Installation or use of Third Party Products and Services with BlackBerry's products and services may require
one or more patent, trademark, copyright, or other licenses in order to avoid infringement or violation of third
party rights. You are solely responsible for determining whether to use Third Party Products and Services and if
any third party licenses are required to do so. If required you are responsible for acquiring them. You should
not install or use Third Party Products and Services until all necessary licenses have been acquired. Any Third
Party Products and Services that are provided with BlackBerry's products and services are provided as a
convenience to you and are provided "AS IS" with no express or implied conditions, endorsements,
guarantees, representations, or warranties of any kind by BlackBerry and BlackBerry assumes no liability
whatsoever, in relation thereto. Your use of Third Party Products and Services shall be governed by and subject
Legal notice
36
to you agreeing to the terms of separate licenses and other agreements applicable thereto with third parties,
except to the extent expressly covered by a license or other agreement with BlackBerry.
The terms of use of any BlackBerry product or service are set out in a separate license or other agreement with
BlackBerry applicable thereto. NOTHING IN THIS DOCUMENTATION IS INTENDED TO SUPERSEDE ANY
EXPRESS WRITTEN AGREEMENTS OR WARRANTIES PROVIDED BY BLACKBERRY FOR PORTIONS OF ANY
BLACKBERRY PRODUCT OR SERVICE OTHER THAN THIS DOCUMENTATION.
BlackBerry Limited
2200 University Avenue East
Waterloo, Ontario
Canada N2K 0A7
BlackBerry UK Limited
200 Bath Road
Slough, Berkshire SL1 3XE
United Kingdom
Published in Canada
Legal notice
37
Legal notice
38