I have no Galaxy S Epic to test with, and I essentially use something
like

if (camera.getParameters().getFlashMode(camera.getParameters()) !=
null) parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH)

to turn on the torch, so from your description I gather that this
ought to work also on the Galaxy.

However, I used FLASH_MODE_OFF to turn the torch LED off, which works
fine on the HTC Desire with Android 2.2, but according to your
description this would fail with the Galaxy. You can try my app "The
vOICe for Android" (search Market for "seeingwithsound", and toggle
the color identification on/off via the Menu key (second entry) to see
if indeed it fails to turn off the torch when done with the color
identification feature. You could use this to validate your analysis
of the Galaxy S Epic.

On Oct 8, 5:26 am, mjmeyer <mjmeye...@gmail.com> wrote:
> I've been stunned by how different Samsung's camera behaves compared
> to the other devices I've tested camera preview stuff with.
>
> Mind you, this is in 2.1 so the SDK 8 Camera.getZoomRatios() and
> Camera.isZooomSupported() are not available.
>
> Looking at the Camera.getParameters().flatten() result shows that the
> common "zoom-supported" that I see in HTC, N1, and Mototrolla devices
> is not there.
>
> Instead there's something called "digi-zoom". I couldnt find any
> documentation or posts about its usage but a little experimenting
> revealed it takes numerals 1..10 as string and will zoom accordingly.
> I have no idea what the ratios would be.
>
> Also, there's some madness with the flash mode on the Galaxy S Epic
> that I have tested with.
>
> Calls to getSupportedFlashModes() return only auto,on,off. There is no
> torch supported.
>
> However, if you do
> params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH) it will turn
> the LED on!
>
> Sadly, subsequently setting it to FLASH_MODE_OFF or FLASH_MODE_AUTO
> does not turn the LED off! It's stuck on until Camera.release(), or
> maybe Camera.stopPreview(), I havent traced into it yet to see which
> actually turns it off.
>
> I suppose that's why Samsung doesnt return torch in the supported
> list. I'd prefer not to have to stop and restart the preview to turn
> it off for this model.
>
> Any suggestions or knowledge of apps that successfully turn torch on
> and then off on Galaxy?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to