1

I am busy developing a windows mobile application that is targeted at WM6 , one of the features i need to use is the camera. In the emulator i can test the camera fine but the image is always black(fades between black and white). I need a way to provide the emulator with a image that i have already taken. At the moment to test i have to deploy the app to my physical device and this is slowing down the process alot.

Helen
  • 87,344
  • 17
  • 243
  • 314
RC1140
  • 8,423
  • 14
  • 48
  • 71
  • 2
    It would be easier to create a mock "take picture" method that will return any image you want. For testing replace CaptureDialog with this method. – kgiannakakis Jun 02 '09 at 08:20

1 Answers1

1

During testing (on the emulaor) use the image picker instead of the camera.

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
  • I have done that , but i don't want to have to remove it every time i need to deploy (The user can never select an old picture). – RC1140 Jun 02 '09 at 08:33
  • I would : 1. Only do it in the debug build so the release build will never do it, 2. and/or detect if it's running under the emulator then do the image picker... – Shane Powell Jun 02 '09 at 10:27