I have created a simple app that integrates zxing scanner. When the app runs on any tablet, the scanner view is displayed properly. However, when I run the same code on Glass, the background for the scanner view is displayed with different color bars:
I am wondering if I missed something. Regards.
Sean was almost right. However, the problem was not the size but the fps. I got the workaround from another post Google Glass preview image scrambled with new XE10 release.
The trick is to add the following line in CameraConfigurationManager.java just before the call to camera.setParameters(parameters):
parameters.setPreviewFpsRange(30000, 30000);
This makes it work on both tablet and Glass.