Sample code for using camera digital zoom in Android-app?
Question
Need set zoom for camera preview...
Solution
The ZXing app does zooming. Check around line 340
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow