Power Management
Introduction
This sample shows how to power off a device, restart the system, and check the screen status.
Usage
-
To power off a device, tap the Power off button, and click OK in the displayed dialog. To quit, tap Cancel in the displayed dialog.
-
To restart the system, touch the Restart button, and click OK in the displayed dialog. To quit, tap Cancel in the displayed dialog.
-
To check whether the screen is on or off, tap the Check screen status button. The check result will be shown in the displayed dialog.
Constraints
This sample can only be run on standard-system devices.