how I can detect if the device has a camera before calling the method camera.showDialog ();?

有帮助吗?

解决方案

I think you're looking for the SystemState.CameraPresent property.

Microsoft.WindowsMobile.Status.SystemState.CameraPresent

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top