Windows Phone 7 - CameraTask 不工作
我的 WP7 应用程序使用 CameraCaptureTask 拍照,然后将其显示在我的屏幕上。该任务在模拟器上运行良好,但是当我将其部署到设备上时它停止工作。在调试时,我发现 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.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在设备上部署应用程序后,请确保 Zune 软件未在 PC 上运行。
Make sure that the Zune software is not running on the PC once the app is deployed on the device.
确保您没有与 PC 建立有效的 USB 连接 - 请参阅 http ://forums.create.msdn.com/forums/p/65574/401189.aspx
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
谢谢奥利维尔、贾斯汀安杰尔和斯图尔特。您的所有回答共同帮助我解决了这个问题。
从 PC 上拔掉 USB 连接后,它就可以工作了。但是,我无法进一步调试我的应用程序。
一旦我停止 zune 软件,该应用程序就不会部署到我的设备上。并且必须安装 WPConnect 工具才能在我的设备上运行,而无需运行 zune 软件。
http://blogs.msdn.com/b/jaimer/archive/2010/11/03/tips-for-debugging-wp7-media-apps-with-wpconnect.aspx
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