Alags
Alags

Reputation: 228

Windows Phone 7 - CameraTask Not Working

My WP7 app uses the CameraCaptureTask to take a pic and then display it on my screen. The task works fine on the Emulator, however it stops working when I deploy it on the device. On debugging I found that the CameraCaptureTaskObject.Show() is getting called, but the camera doesn't show up. Instead the capture task completed event gets fired directly.

Any suggestions?

Upvotes: 6

Views: 1806

Answers (3)

Alags
Alags

Reputation: 228

Thank you Olivier, JustinAngel and Stuart. All your answers together helped me resolve the issue.

Removing the USB connection from the PC, made it work. However, I was unable to debug my app further.

And once I stopped the zune software, the app wouldn't get deployed to my device. And had to install the WPConnect tool to work with my device without having the zune software running.

http://blogs.msdn.com/b/jaimer/archive/2010/11/03/tips-for-debugging-wp7-media-apps-with-wpconnect.aspx

Upvotes: 4

Stuart
Stuart

Reputation: 66882

Make sure that you do not have a USB connection active to the PC - see http://forums.create.msdn.com/forums/p/65574/401189.aspx

Upvotes: 4

Olivier Payen
Olivier Payen

Reputation: 15268

Make sure that the Zune software is not running on the PC once the app is deployed on the device.

Upvotes: 11

Related Questions