Deploying and Running the Device Application

Goal: Deploy the device application to a Windows Mobile 6 device emulator, and test its functionality.

  1. In the Visual Studio Solution Explorer, right-click the SampleApp project, and select Build.
  2. In the Visual Studio toolbar, click the green arrow to the left of Debug, select Windows Mobile 6 Professional Emulator in the Target Device combobox and click Deploy.

    Device Application Debug - Visual Studio
    The device application is deployed to the emulator and runs in debug mode.
  3. In the device emulator, click Subscribe.
    winmob_subscribe_device
    When you are successfully subscribed, a message appears in the text box saying the subscription request was sent.
  4. When you see the "Refresh data" message, click Refresh to populate the Customers table data in the list view.
    winmob_refresh_data_device

    wm_customers_list

    You see an "Import successful" message. If you see the message but do not see the customer list, click Refresh again.

  5. Select the customer record, Beth Reiser, with the Id 102 from the customer list and click Update.
  6. In the customer details screen, change the customer's First Name to SUP and click Submit.
  7. In the Customers screen, click Refresh.
    The changed record appears at the bottom of the customer list because the change has not yet been sent to the server.
  8. Click Send.
  9. After you see the "Operation Reply successful" message, click Refresh.
    The updated record shows in the customer list.