I am working on an application for Google Glass that relies on scanning various QR codes at the setup stage. Prior to XE16, the custom autozoom function that I created worked flawlessly. The camera will be enlarged until the movement of the user's head remains within the specified field and reset if these fields are exceeded.
The glass we use for development has been updated to XE16 (Android 4.4.2), and the zoom function no longer works.
if (mCamera != null) {
Parameters parameters = mCamera.getParameters();
parameters.setZoom(currentZoom);
Log.i("ZoomManager", String.format("Set zoom to %d/%d", currentZoom, maximumZoom));
mCamera.setParameters(parameters);
Log.i("ZoomManager", String.format("Current zoom %d/%d", mCamera.getParameters().getZoom(), maximumZoom));
}
Running this code displays the following.
04-17 13: 22: 24.300: I/ZoomManager (11398): 3/60
04-17 13: 22: 24.347: I/ZoomManager (11398): 0/60
04-17 13: 22: 24.644: I/ZoomManager (11398): 6/60
04-17 13: 22: 24.699: I/ZoomManager (11398): 0/60
04-17 13: 22: 25.011: I/ZoomManager (11398): 9/60
04-17 13: 22: 25.050: I/ZoomManager (11398): 0/60
04-17 13: 22: 25.332: I/ZoomManager (11398): 12/60
04-17 13: 22: 25.371: I/ZoomManager (11398): 0/60
04-17 13: 22: 25.667: I/ZoomManager (11398): 15/60
04-17 13: 22: 25.714: I/ZoomManager (11398): 0/60
.... 60
, , , - . - , - , ?