Before deploying your application, it is important that you test it in an environment similar to a real device.
You can run the application in the emulator, and test a variety of user scenarios, such as network access, audio input and out, and text messages. With a mouse and keyboard, you can control the application in the emulator just like on an actual device.
While the application is running, you can use the Emulator Control Panel to simulate events for a variety of system options that the actual device provides. For example, by manipulating the virtual battery, you can simulate the application in different charge environments.
The emulator controls consist of internal and external parts:
The HOME, Volume control and Back buttons, for example, are external parts controlling the device from the outside.
In the emulator, the external parts are called the emulator control keys and menu.
Battery level and screen brightness, for example, are internal parts controlling the device from the inside. In the emulator, the internal parts are called the Emulator Control Panel.
The control keys are visible on the emulator when you start it. To access the context menu, right-click the emulator.
Figure: TV, mobile, and wearable emulators
You can create a custom resolution emulator by using the Emulator Manager CLI, and launch it with the TV and mobile skin. It is not guaranteed that all applications are correctly shown in the custom resolution.
The following hardware keys are available on the emulator:
When tapped, a list of options available for the current screen opens. On the TV platform, the options include removing an application.
When long-pressed, the Task switcher application opens as on a real device.
When tapped, the emulator returns to the previous screen.
You can power off the display by tapping the Power key in most situations. Sometimes, the display does not power off when you tap the Power key. This is to guarantee the operation of a current application, such as the Stopwatch in the Clock application. If you tap the Power or Home key again, the display is powered on.
Volume Up and Volume Down (mobile only)
When tapped, the volume changes accordingly.
Arrow keys (TV only)
When tapped, the cursor or selection moves in the desired direction.
OK (TV only)
When tapped, the item is selected.
You can access the context menu by right-clicking the emulator. In the menu, you can select:
Emulator name (the top row in the menu)
The Detailed Info window is displayed, showing the Shortcut Info and VM Info tabs. The Shortcut Info tab lists the emulator keyboard shortcuts and the VM Info tab defines the virtual machine details.
Table: VM Info
|VM Name||VM name|
|Skin Name||Skin name|
|CPU Arch||CPU architecture|
|RAM Size||RAM size (in MB)|
|Display||Target display resolution (in DPI; Dots Per Inch)|
|Network Connection||NAT (Network Address Translation) or Bridged|
|CPU Virtualization||Whether hardware virtualization is supported|
|GPU Virtualization||Whether GPU virtualization is supported|
|Platform Image Version||Version of the used platform image|
|Platform Image File||Location of the used platform image|
|Directory Sharing||Whether host directory sharing is used|
|File Shared Path||Path to the shared host directory|
|Kernel Log File||Kernel log file path|
|Emulator Log File||Emulator (Qemu) log file path|
|Emulator Version||Tizen Emulator version|
Always On Top
Select this option to keep the emulator window on top of other windows.
Rotate (mobile only)
Select either Portrait, Landscape, Reverse Portrait, or Reverse Landscape as the orientation of the emulator.
Scale (mobile only)
Scale the size of the emulator between 1x, 1/2x (default), 3/4x, and 1/4x.
Advanced > Controller
Show or hide the controller window.
The Controller menu is not supported in the profile-specific skin.
Advanced > Screenshot
Capture a screenshot of the emulator.
Advanced > About
Display the emulator version and build time.
Advanced > Force Reboot
Force the emulator to reboot. Since force rebooting the emulator can cause problems, use the reboot option from the SDB shell to reboot the emulator. Use Force Reboot only when absolutely necessary.
Advanced > Force Close
Force the emulator to exit. Since force stopping the emulator can cause problems, use the Close option to exit the emulator. Use Force Close only when absolutely necessary.
Open a Smart Development Bridge (SDB) shell command window.
Control or monitor the state of the emulator dynamically.
Exit the emulator.
With the Emulator Control Panel, you can simulate system events and perform related tasks.
The control panel consists of 3 layers:
Figure: Emulator Control Panel layers
To open the control panel:
Launch the emulator.
Click the Control Panel button, or right-click the emulator and select Control Panel.
The following table lists the control panel features and their availability on different profiles. The instructions for using the features are described below the table.
Table: Control panel features
|Network||Yes||Yes||Yes||You can control the user network and forward a remote or local port to an inside port of the emulator.|
|Host Directory Sharing||Yes||Yes||Yes||You can transfer files through the host directory sharing feature without using the SDB utility.|
|Battery||Yes||No||Yes||You can set the battery level and charger status.|
|RSSI||Yes||No||No||You can set the remote signal strength.|
|Sensor||3-Axis||Yes||No||Yes||You can simulate user acceleration, magnetic, and gyroscope values.|
|Light||Yes||No||Yes||You can simulate a lux value for the light sensor.|
|Proximity||Yes||No||Yes||You can simulate the presence of nearby objects.|
|Pressure||Yes||No||Yes||You can simulate an hPa value for the pressure sensor.|
|Ultraviolet||Yes||No||Yes||You can simulate an ultraviolet index value.|
|Heart Rate Monitor||Yes||No||Yes||You can simulate the user heart rate and peak-to-peak time.|
|Pedometer||Yes||No||Yes||You can simulate user movement with the device.|
|Earjack||Yes||No||No||You can add or remove a headset.|
|USB||Yes||No||Yes||You can add or remove a USB device.|
|SD Card||Yes||No||No||You can simulate a 4G, 8G, 16G, or 32G SD card.|
|NFC||Yes||No||Yes||You can simulate near-field communication (NFC) events.|
|Location||Yes||No||Yes||You can simulate latitude and longitude values using a map, manually, or from a log file.|
|Telephony||Yes||No||Yes||You can make and receive a call. You can also send and receive SMS messages.|
|Memory||Yes||No||Yes||You can set the memory status.|
In the Network card, you can control the user network.
To lose the network connection, set the Link Status switch off. To forward a remote or local port to an inside port of the emulator, enter values in the text boxes, and click Apply.
Figure: Network popup
In the HDS card, you can configure host directory sharing (HDS) to share resources and transfer files without using the SDB utility. The specified host directory is mounted to
Figure: Host Directory Sharing popup
The control panel can be used to simulate various device data:
In the Battery card, you can set the battery level using the Level slider. You can also connect or disconnect a charger using the Charger switch.
In the Ear Jack card, you can add or remove an earjack (headset) device. You can add a 3-wire or 4-wire device.
In the USB card, you can connect or disconnect a USB device.
In the RSSI card, you can set the RSSI (remote signal strength indicator) information level.
In the SDCard card, you can attach or detach an SD card to or from the emulator at runtime. You can attach a 4G, 8G, 16G, or 32G SD card.
The same SD card cannot be attached to multiple emulators at the same time.
Device information set using the control panel is reflected on the indicator bar of the emulator screen.
In the Location card, you can provide simulated responses to location data requests:
Injecting map markers
In the Map Image section, right-click the desired map locations and click Inject Markers to send the location data to the emulator.
Manually entering location coordinates
In the Manual section, enter the coordinates and click Inject Location to send the location data to the emulator. The range of the latitude, longitude, altitude, and horizontal accuracy is from -90 to 90, -180 to 180, -300 to 100000, and 0 to 100000, respectively.
Loading a GPS log file
In the Log section, select a pre-logged GPS data file (in NMEA183 format) and click Inject Log to send the location data to the emulator.
In the NFC card, you can test near-field communication (NFC) features.
The control panel only sends NFC-related events to the emulator. There is no actual information exchange between the control panel and emulator. Therefore, for information exchange features, such as writing information to an NFC tag, the emulator simply displays a success message.
Creating NFC data exchange format (NDEF) messages
An NDEF message contains 1 or more NDEF records. In the NDEF Message section:
You can add multiple NDEF records in the NDEF message.
Click Edit or Remove to modify or delete a selected record.
Attaching and detaching NFC tags
In the NDEF Tag section:
Select the tag type.
Click the switch to attach or detach the tag.
If the NDEF record list is not empty, an NDEF message is created using this list and the attach message is sent to the emulator with the NDEF message.
Creating a peer-to-peer (P2P) data connection
In the PEER TO PEER section:
In the control panel, you can model user actions, such as shaking, throwing, and tilting the device, for the emulator instance. In addition, you can simulate a single sensor event on the instance, or send sequences of 3-axis sensor events to the instance.
In the Sensor card, you can control the 3-axis sensors. The popup consists of 4 tabs, where you can adjust the acceleration, magnetic, and gyro sensors of the emulator instance. In the GUI tab, you can intuitively adjust various sensor data by using 3D graphics.
In the GUI tab, you can select an active sensor and move the 3D model of the emulator instance with the 3 axis sliders or the direction buttons (Portrait, Landscape, Reverse Portrait, and Reverse Landscape). The instance monitor displays the acceleration, magnetic, and gyro values.
To better control the movement, select the With axis check box to see the axes in the emulator image. You can also fix the Y or Z axis by selecting the X/Z or X/Y radio button, respectively. To change the emulator accelerator value in the direction of the movement, select the Move radio button.
In the Acceleration tab, you can control the acceleration of the instance along the coordinate axes. When the emulated device is stationary and vertical in portrait orientation, the acceleration value of the Y axis is 1 g (gravitational acceleration). You can control the acceleration 3-axis values from -2 g to 2 g, using the sliders.
In the Magnetic tab, you can control the magnetic field values of the instance along the coordinate axes. When the emulated device is stationary and vertical in portrait orientation, the Y axis is at true north and the magnetic field strength values are 1, 0, and -10 µT (microtesla). You can control the magnetic field 3-axis values from -2000 µT to 2000 µT, using the sliders.
In the Gyro tab, you can control the gyro (rotation angle per second) of the instance along the coordinate axes. You can control the gyro 3-axis values from -573 degrees/s to 573 degrees/s, using the sliders.
You can simulate a single event on the individual sensor, or use sensor data files to simulate sequences of events on the sensor. A sensor data file consists of predefined events. It is written in ASCII. By loading a data file in the Acceleration, Magnetic, or Gyro tab, you can play a sequence of predefined events. You can also add multiple data files to be played in sequence. The format of each line in the event file is:
timestamp, x, y, z
When you add the event files and click Start, the predefined events are simulated at their specified relative timestamp. The timestamp unit is 0.01 seconds. Some events can be discarded, if they exceed certain limits of performance, resource, or logic.
In the Light card, you can simulate ambient light conditions using the Lux slider. The range of this value is from 0 Lux to 65635 Lux.
If automatic screen brightness is activated in the device settings, the display changes based on the simulated light value.
In the Proximity card, you can set the proximity sensor state to Far or Near.
In the Pressure card, you can control the pressure sensor using the hPa slider. The range of this value is from 260 hPa to 1260 hPa (Hectopascals).
In the Ultraviolet card, you can control the ultraviolet sensor using the Index slider. The unit is UV index and the range of this value is from 0 to 15.0.
In the Heart Rate card, you can control the HRM (Heart Rate Monitor) sensor. You can use the bpm slider to set the heart rate value between 0 and 220 bpm, and the ms slider to set the peak-to-peak time between 0 and 5000 ms (milliseconds).
In the Pedometer card, you can simulate user movement with the device by selecting a movement pace:
In the Telephony card, you can generate incoming calls and messages:
Generating incoming calls
Incoming calls are generated in the Call tab.
A Mobile Termination (MT) call is made from the Emulator Control Panel to the emulator. A Mobile Origination (MO) call is made from the emulator to the Emulator Control Panel using the emulator’s phone application.
To make an MT call:
In the MT Call section, enter the phone number you want to imitate the call from.
To hide the phone number on the emulator, select the Hidden option.
The caller ID on the emulator is set to “Unknown”.
To make an MO call:
Call a phone number using the emulator’s phone application.
In the MO Call section, you can see the call ID, number, and call type.
To disconnect the call, click Disconnect.
SMS messages are generated in the Messaging tab. After sending a message, your application waits for the asynchronous send status message. You can generate this status report for SMS messages using the same Messaging tab.
To generate an SMS message:
To generate status reports, select the sending status value for the SMS message and click Set. The available values are:
You can also generate MMS message status reports. To generate MMS status reports, select the sending status value for the MMS message and click Set. The available values are:
In the Memory card, you can select a specific memory status using the radio buttons: