Mobile device emulation for Windows Mobile

Can I emulate a device sleeping and waking up with device emulators supplied by Microsoft?

0


source to share


2 answers


Yes, but you need to create your own emulator image with a modified kernel (by changing OEMPowerOff). Bruce Eitman talked about it here . You haven't detailed your needs, so it's hard to tell, but you could provide some form of simulation by manually setting named power management events.



+1


source


This is an old thread, but in case anyone else stumbles upon it, you can get Windows Mobile emulators to "sleep" and wake up, but not with a debugger attached.

  • Close the emulator window while the application is running and save it. Or configure power management to hibernate the emulator at the right time; the emulator will close and automatically save its state. If a debugger is connected, it will lose connection and stop debugging.
  • Open the Device Emulator Manager and click Refresh until the emulator shows up as disabled (no icon next to it). Right-click the name of the emulator and select Connect.
  • The emulator wakes up and reappears. If your app is listening for a wake up notification, it will be signaled at that moment.


You can also wake up the emulator using Debug> Attach to Process, although this does not always work. In any case, by the time the debugger is attached, the wakeup sequence has already been completed. However, if you can get by with the debug instructions, it is easier than modifying the emulator image.

0


source







All Articles