需要设置缩放以进行相机预览...
The ZXing app does zooming. Check around line 340
I'm pretty sure the zxing code wont work on the Samsung Galaxy. The Camera.getParams() it returns do not contain any "zoom-supported" item.
Nor are there any "max-zoom" or "taking-picture-zoom-max" params on my Samsung Epic (a Galaxy S family model).
There is a "digi-zoom" but I dont find any info on it's usage.
(I'm the developer.) I agree with both answers above. Before Android 2.2 there is no "real" zoom API and some devices don't have an unofficial API that I can guess. You can try a Froyo build I'm working on that does use the real zoom API to see if it works. If it does I can share the code privately.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.