8

I read this article, which claims Google glass can autofocus. However, this code returns false:

getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_AUTOFOCUS)

I could not find a definite answer on Google Glass Tech specs. Does anyone know for sure if the camera can auto focus? Thanks in advance.

orb
  • 1,263
  • 1
  • 10
  • 16
display name
  • 4,165
  • 2
  • 27
  • 52

2 Answers2

1

The current Glass camera has a fixed focus, not autofocus. So it would make sense that this returns false.

Prisoner
  • 49,922
  • 7
  • 53
  • 105
  • Like you mentioned, I found GDK [issue 303](https://code.google.com/p/google-glass-api/issues/detail?id=303): requesting additional camera focus modes (with auto focus) has been accepted but not yet implemented. Thanks. – display name Dec 25 '13 at 23:47
0

If you run

List<String> FocusModes = params.getSupportedFocusModes();

Then you will get a list of only one focus. It actually only supports

Camera.Parameters.FOCUS_MODE_INFINITY
w9jds
  • 877
  • 6
  • 17