public bool takePhoto()
{
System.Diagnostics.Debug.WriteLine("takePhoto");
if (cam == null) { return false; }
try
{
cam.FocusAtPoint(0.5,0.5);
}
catch
{
// Probably still taking a previous photo.
System.Diagnostics.Debug.WriteLine("fail");
return false;
}
return true;
}