Windows Phone 7 - CameraTask不工作 [英] Windows Phone 7 - CameraTask Not Working

查看:134
本文介绍了Windows Phone 7 - CameraTask不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的WP7应用程序使用CameraCaptureTask拍摄照片,然后将其显示在我的屏幕上。任务在Emulator上工作正常,但是当我在设备上部署它时,它停止工作。在调试我发现CameraCaptureTaskObject.Show()被调用,但相机不显示。相反,捕获任务完成事件直接触发。

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.

有任何建议吗?

推荐答案

谢谢Olivier,JustinAngel和Stuart。所有您的答案都帮助我解决了问题。

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

从PC中删除USB连接,使其工作。但是,我无法进一步调试我的应用程序。

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

一旦我停止了zune软件,该应用程序将不会部署到我的设备。而且必须安装WPConnect工具才能使用我的设备,而无需运行zune软件。

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

这篇关于Windows Phone 7 - CameraTask不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆