Thread: mbarcode
View Single Post
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#344
Originally Posted by joshn53 View Post
There are a couple of things that I'd like to change, but wanted to check with lardman or dragly first:
* Since we're automatically focusing now, can we simply remove the focus button? It becomes enabled/disabled constantly, and is distracting.
Yes, I'm happy with that, however I would prefer to leave the code in place and to have a checkbox in the settings menu so that people can choose whether to have continuous autofocus or manual autofocus (if you get my drift ) and then provide a button or not, depending on that setting.

Of course, depending on how dragly's UI changes go, we may want to hook up the manual autofocus call to something other than a button (and at the very least it may not be that button anyway).

Originally Posted by joshn53 View Post
* Several times now I've started to scan without remembering to open the lens cover. Besides being confusing, this makes the LEDs shine right against the cover, which can't be good for the phone. Could I change mbarcode to detect if the cover is closed? I'd lock the camera open (so the native camera app can't start), but display a message and not turn on the flash until the covers opened.
Yes, detecting whether the cover is open or closed was on my todo list, please feel free to implement some protection and/or warning mechanism (one option would simply be to disable autofocus if the shutter is closed, but let the camera run normally and display a pop-up telling the user to open the cover).