|
Loading...
|
android-developers@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
[android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) RobiZX Sat Feb 25 07:01:06 2012
Yes. I've tested it on Android 2.3.3 using HTC Wildfire. Now I try to use API lvl 14 for Android 4.0 and it's not working on Galaxy Nexus. On Feb 25, 3:37 pm, Zsolt Vasvari <[EMAIL PROTECTED]> wrote: > I assume you tested this on an older version of Android and it worked > OK? > > On Feb 25, 8:29 pm, RobiZX <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > if someone know why cameras flash light won't turn on? I made some > > standard code to turn on flashlight but nothing seems to happened. I > > even checked status of flash (getFlashMode) with result "torch". I > > don't if I miss something. There is some of my code: > > > mCam = Camera.open(BACK_CAMERA); > > mParams = mCam.getParameters(); > > > // turning on: > > mParams.setFlashMode(Parameters.FLASH_MODE_TORCH); > > mCam.setParameters(mParams); > > mCam.startPreview(); > > > // turning off: > > mParams.setFlashMode(Parameters.FLASH_MODE_OFF); > > mCam.setParameters(mParams); > > mCam.stopPreview(); > > > // state checking: > > vStat.setText(mParams.getFlashMode()); -- 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
- [android-developers] Camera torch mode in ICS (Galaxy Nexus) RobiZX 2012/02/25
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) Zsolt Vasvari 2012/02/25
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) RobiZX 2012/02/25 <=
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) lbendlin 2012/02/25
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) RobiZX 2012/02/26
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) Pent 2012/02/26
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) RobiZX 2012/02/26
- [android-developers] Re: Camera torch mode in ICS (Galaxy Nexus) RobiZX 2012/02/26