Deploying and Running the Device Application

Deploy the device application to a Windows Mobile 6.5.3 device emulator, and test its functionality.

  1. In Visual Studio, choose Tools > Device Emulator Manager.
  2. Scroll down to Windows Mobile 6.5.3 Professional Emulator, right-click, and select Connect.
    The Windows Mobile emulator launches.
  3. In Device Emulator Manager, right-click Windows Mobile 6.5.3 Professional Emulator again and select Cradle.

    Windows Mobile Device Center launches and connects automatically.


    Windows Mobile Device Center
  4. In the Solution Explorer of Visual Studio, right-click the SMP101 project and select Deploy.
  5. If you see the Deploy SMP101 dialog, select Windows Mobile 6.5.3 Professional Emulator and click Deploy.
  6. In the Windows Mobile emulator, select Start > File Explorer.
  7. Select My Device > Program Files > smp101
  8. Open the smp101 folder.
  9. Click SMP101 to start the application.
  10. Click Initialize App.
    Inside InitializeApplication, the application is registering and synchronizing data from the backend server. The initialization process also enables Target Change Notification by:
    ISynchronizationGroup sg = SMP101DB.GetSynchronizationGroup("default");
    sg.EnableSIS = true;
    sg.Save();
    
    A message displays in the output box below when complete.
    Customers Form with application initialized
  11. Click Load Data to populate Customer data in the list view.
    To improve performance, SMP101DB.ExecuteQuery queries the customer list, selecting only required columns (fname, lname...) instead of the entire customer object.
    Customers Form populated with data
  12. Highlight a customer record and click Update Customer.

    Customer List Update
  13. Make changes, then click Submit to return to the Customers List screen.
    Inside Submit, customer information is updated and SMP101DB.beginSynchronize is called in the background to avoid blocking the user interface.