Rebooting The Device

This sample application will allow you to set the power state to "Suspend" (sleep mode) or "Reset" (reboot).

Download Source

Product

EMDK For Xamarin - 2.7

Devices

MC18KK MC32N0JB MC40JB MC40KK MC67JB MC92KK TC55JB TC55KK TC70KK TC75KK

Overview

The Power Manager Profile allows you to control the power state of a Symbol device.

The available actions are:

  • Do Nothing
  • Sleep Mode
  • Reboot
  • OS Update

This sample application will allow you to set the power state of "Suspend" (sleep mode) or "Reset" (reboot).

Loading the Sample Application

  1. Choose a sample and click the See Details button.
  2. Now click the Download button
  3. Extract the downloaded project zip file.
  4. Navigate to the root of the unzipped project folder and double-click the .sln file. The project will load in the default IDE for that file type.

Alternatively, you can Launch your prefered IDE ( Visual Studio or Xamarin Studio ) and load the project via the File > Open menu.

Running the Sample

Now that we have the project loaded, lets run the application and see how it works

Visual Studio

Visual Studio will detect your device connected via USB, it will display the name of that device next to the "Play" button.

img

Press the "Play" button next to the devices name. The IDE will build, deploy and start the sample app on your device.

Xamarin Studio

In Xamarin Studio, you may need to select your attached device from the devices dropdown under Physical Devices.

img

Now press the "Play" button. The IDE will build, deploy and start the sample app on your device.

img

Using This Sample

  1. When the application starts it should look like the following.
    img
  2. Select the power mode you would like to set.
    img
  3. Click "Set"
  4. Check the status field.
    img