Hi Jim (^_^) thanks for response.
> And then you cycle through the List to see of "torch" is one of the
> values. If it is, proceed. If not, tell the user that their device
> does not support being used that way, close the camera and exit.
ok, I understand. In this case samsung no support torch, then I use
FLASH_MODE_ON
params.setFlashMode(Parameters.FLASH_MODE_ON);
but only illuminates a 5 seconds and then turns off.
> > mycam.autoFocus(new Camera.AutoFocusCallback() {
> > @Override
> > public void onAutoFocus(boolean success, Camera camera) {
> > // TODO Auto-generated method stub
> > }
> > });
>
> Focus mode has nothing to do with the flash. If you don't need it for
> some other reason, you don't need it.
but if I clean this code not work. why?
if I do turn on long time but flashes.
mycam.autoFocus(new Camera.AutoFocusCallback() {
@Override
public void onAutoFocus(boolean success, Camera camera) {
// TODO Auto-generated method stub
camera.onAutoFocus(this);
}
});
any idea?
thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en