Export (0) Print
Expand All

Testing Applications in Administrator Mode

Surface 1.0 SP1

Microsoft Surface applications run as applications that users can access from Launcher or as attract applications. But you build applications individually before you integrate them into the overall Microsoft Surface user experience. You can easily run and test an application with a Microsoft Surface unit in administrator mode, so you can test an application incrementally as you are developing it.

In administrator mode, you can use the Surface Input application to read contacts on the Microsoft Surface screen so that you can run and test a touch-enabled Microsoft Surface application. To start Surface Input, double-click the Surface Input icon on the desktop. Then, a SurfaceInput icon appears in the notification area to the right of the taskbar that states if Surface Input is running or stopped.

However, if you run an application by using only Surface Input, you cannot test Surface Shell integration. If you want to test whether an application works with Launcher and you want to fully test the Shell API that is required for Launcher, you must run Surface Input and Surface Shell. (Surface Shell is described in the following section.)

To run an application on a Microsoft Surface unit in administrator mode

  1. Make sure that the SurfaceInput icon appears in the notification area, and then right-click the icon to make sure that Surface Input is running. If Surface Input is not running, double-click the Surface Input icon on the Windows desktop to start it.

  2. Open Microsoft Visual C# 2008 Express Edition (or Microsoft Visual Studio 2008) and then press F5, or open Windows Explorer, find the executable file for the application, and double-click the executable file.

The application displays on the entire Microsoft Surface screen and responds to finger and object contacts like it would in user mode. To close an application on the unit in administrator mode and return to the desktop, press ALT+F4.

Running and Testing an Application with Surface Shell in Administrator Mode

You must run and test an application with Surface Shell to make sure that the application works properly with Launcher and other Surface Shell functionality.

To run Surface Shell and applications on a Microsoft Surface unit in administrator mode

  1. Make sure that the SurfaceInput icon appears in the notification area, and then right-click the icon to make sure that Surface Input is running. If Surface Input is not running, double-click the Surface Input icon on the Windows desktop to start it.

  2. On the Windows desktop, double-click the Surface Shell icon. Surface Shell starts and displays on the entire Microsoft Surface screen. The Windows desktop remains visible on the external monitor. (To learn how to set up an external monitor with a Microsoft Surface unit, see Attaching an External Monitor to a Microsoft Surface Unit.)

  3. To start an application, do one of the following:

    • On the Microsoft Surface screen, start the application from Launcher just as a user would.

    • On the external monitor, in Visual C# 2008 (or Visual Studio 2008), open the corresponding solution file, and then press F5 to run your application in the debugger.

  4. If you started the application from Launcher, and if you want to run the debugger, open Visual C# 2008 (or Visual Studio 2008) and attach the debug process to the running application.

To close Surface Shell on a Microsoft Surface unit in administrator mode, on the external monitor, right-click the Surface Shell icon in the notification area, and then click Close.

Testing Unregistered or Service Applications in Administrator Mode

In administrator mode, you can test an application without registering it. (That is, the application does not have an XML registration file.)

In administrator mode, Surface Shell checks whether an unregistered application is a console application and treats console applications as service applications.

If you try to use an unregistered service application that is not a console application in administrator mode, Surface Shell assumes it is a standard application . Its behavior will not be consistent with service applications because it will appear in Launcher and it will be closed at the end of a user session.

Community Additions

ADD
Show:
© 2014 Microsoft