Android :: Set Flash Mode Camera.parameters
Oct 7, 2010
I'm trying to use the camera in an Android app using the 1.5 API. I want the camera to flash for every picture. However, when I looked at the API for camera.parameters, the setFlashMode() method is only supported for 2.0 and higher. Yet my Cliq XT, which runs 1.5, has a flash that I can set in the menu - I take this to mean there is a way to do this for the 1.5 API, though I was unable to find it.Does anyone know how to set the flash mode using the 1.5 API?
View 1 Replies
Oct 7, 2010
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.
View 2 Replies
View Related
Jan 19, 2010
I am developing an app that uses the phone camera, and I want to set the Flash Mode, if flash exists. From documentation, it looks like I need to call Camera.Parameters.getFlashMode() and check if it returns null to determine if flash exists. Note: getFlashMode() is supported from API level 5
However, when I try to run this app on a phone with cupcake, I get an error: 01-19 14:02:43.404: ERROR/dalvikvm(18891): Could not find method android.hardware.Camera$Parameters.getFlashMode, referenced from method ...
I tried to call this code based on SDK version as follows, but that does not work either. Looks like there is a class verification thats fails at init:
CODE:............................
So now I am wondering if there is any other way to check if flash exists? or is there a way to conditionally compile code based on mSdkVersion?
View 2 Replies
View Related
Aug 4, 2010
If you could only choose one of these, which would you have chosen for the Fascinate? (Obviously it would be best to have both).
View 8 Replies
View Related
Aug 5, 2009
I am trying to use Camera to take picture and to video recording but it always runs in portrait mode. Even if I tried to sreenOrientatiton="landscape" it solved screen appearance but when I take photo and capture video they are still saved rotated 90 degrees.
View 5 Replies
View Related
Nov 9, 2010
Is there a way by which I can control the camera flash at the back of the phone? I want it to be on for a certain period of time during my app.
View 2 Replies
View Related
Jul 7, 2010
I hate trying to record something at night or in a nightclub with my Moto Droid because it looks like crap! All dark and not viewable. So my question is, is there an app that will turn on the camera's flash and use that for the video camera? Im trying to find something in the market.
View 3 Replies
View Related
Nov 24, 2010
I am New To android, my problem is when iam capturing image programetically the camera is opening in landscape mode..Than How to Avoid it?
View 1 Replies
View Related
May 21, 2010
My app is using the camera on the phone. For phones w/ 2.0+ I have been able to activate the Flash. When I test on a phone with 1.5 OS on it the app crashes. I get: java.lang.reflect.InvocationTargetException and the Cause is java.lang.VerifyError: fishers.Nav.TakePicture$1
I assume because you have to access the flash differently in apps below 2.0? Can anyone give me some advice or links to examples showing how I could make it work over the whole range of Operating System version or is that just not at all do-able?
View 5 Replies
View Related
Dec 7, 2009
For some reason now when I launch shopsavvy the flash on my Behold2 keeps going off every 5 seconds and I am unable to scan the barcode.
View 1 Replies
View Related
Apr 25, 2010
Being relatively new to my Droid, I'm still finding fun stuff. Recently, I picked up the shell/holster combo and really like it. However, while I am at work, I have my phone on vibrate (thanks Timeriffic) and can't tell who is texting/emailing me like I used to (different colors for the LED, thanks Handcent). What I was wondering is: is it possible to write an app that uses the camera flash like a vibrate function.
The ability to customize the number of flashes and duration would be cool, as would the ability to have it only flash when the phone is on vibrate or silent. Preferably, without having to root the phone. If its not possible due to hardware or software lockouts oh well.
View 1 Replies
View Related
Apr 19, 2010
is there an app that turns the led camera flash into a useful torch?
thanks
View 11 Replies
View Related
Jun 27, 2009
When do you expect it to get fixed? I am a developer working on http://layar.eu and I had to go through lot of trouble to get the app working in portrait mode with camera preview, using a LOT of rotations. I have managed to get everything rotated to portrait except for the on screen inputmethod which still shows up in landscape. Do you have any suggestions for rotating that?
View 9 Replies
View Related
Mar 11, 2010
Is there a particular flag that we can use to prevent apps showing up in marketplace which require the phone to have a Camera Flash /LED. typical apps are ones which make the phone act like a torchlight in dark , i have seen a tag which prevents apps requiring autofocus in a camera from appearing in the marketplace. Just looking to find out if there is something similar for camera flash.
View 2 Replies
View Related
Aug 31, 2010
Is there such an app that can make the camera flash LED work as a notifier instead of the notification LED?
View 2 Replies
View Related
Sep 21, 2010
So how do you turn on the camera's "flash" LED in Android? (like flashlight apps) - and is it possible to vary the brightness?
search results for "android flash" too polluted by adobe flash..
View 1 Replies
View Related
Nov 16, 2010
In the update phase 2 after I press the back button and connect the usb cable it lights green and i waited for more than 20 sec to boot in flash mode but it doesn't happen and the phone turned back on automatically.
View 4 Replies
View Related
Jan 13, 2013
I have a problem with my google tv , MK808B
It doesn't boot
I have black screen after "android"
It seem to be a real one, not a fake, I open it and see it on another site, with pictures from the real and the fake
I try to flash another firmware, but I can't put it in flash mode, when I press reste button and connect to usb from otg to my pc, my pc doesn't detect mk800b
View 3 Replies
View Related
Aug 4, 2010
I want to record and then upload that on server using camera but without any notification. Is their any way to start camera programmatically in video mode with screen remain off?
View 1 Replies
View Related
Aug 27, 2010
My Flash on the camera has stopped working all of a sudden. I checked the camcorder and the light (flash on) didn't work. I tapped the back of the phone near the flash. It worked. I went back to camera and turned on flash, it worked. So by tapping something I jigged something around in there and the flash was working.
View 1 Replies
View Related
Nov 16, 2010
The camera flash on the Incredible is killing me, it basically blurs out everything in the picture, especially a face! Anything white in the picture will have not detail or definition when you use the flash to take a picture.
View 2 Replies
View Related
Jul 18, 2011
I tried to start the camera flash for an app I'm doing but I don't understand why it isn't working.
here is the code:
Code:
import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
[Code].....
For information I'm using a LG Optimus 3D for the test of this app.
View 2 Replies
View Related
Jun 18, 2010
Will the android version 2.1 update provide the X10 a proper flash LED when taking photo's? Currently, it's somewhat cumbersome to go all the way into settings to turn on the LED light (that stays on until you turn it off) just to take a well lit photo. So I'm just wondering will the LED flash on the new OS update provide the automatic LED flash?
View 2 Replies
View Related
Jan 9, 2010
Did anyone figure out how to turn it on or is it not included.also how can haptic feedback be incorporated into the whole UI, it seems to be only in the keypad.
View 2 Replies
View Related
May 16, 2010
I used this app on my original Motorola Droid and loved it, but I have noticed some problems with it on the Incredible. I'm wondering if it's just me or if anyone else has had these problems as well.
1. LED Light does not change color. No matter what color I set the LED light to in the Handcent app, it always just blinks green. This isn't necessarily a huge deal, but I liked having my text messages blink a different color than my emails and other notifications.
2. LED light does not always blink and screen does not turn on. I noticed that the LED light only flashes once in a while, no matter what type of blink setting I choose. Also, the screen does not turn on when I get a text even though I have the box checked that is supposed to enable the screen to turn on despite having the popup box disabled. Once again, not a huge deal, but it would be nice if these things worked since I got used to these features on the Droid.
3. Phone does not vibrate at all when in Vibrate mode. Ok, this one is a huge deal. No matter which vibrate settings I choose, the phone will not vibrate when I receive a text if the phone is in vibrate mode. I am missing tons of texts now because I need to have my phone silent for most of the day. I checked the recent reviews of the app and didn't see anyone complain about this, so I don't know if there is just something wrong with my phone or if the app just isn't very compatible with the Incredible.
View 15 Replies
View Related
Apr 6, 2014
I recently bought a Pearl Touchlet X10 quad core (PX-8880-675) tablet, but it was full of mods and when i plugged in the charger i received the "plugged in, not charging" message. So i started to clean up the ROM. Finally it showed charging, but now i really messed it up, beacuse now it is not booting. The tablet was not factory software, another tablet software on it that has a volume rocker. To start the flash mode i need the volume up button, but this version of tablet does not have this button. I tried the home button version, but it is not working because of the different firmware.
Here's the thing:The tablet always starts recovery mode, no screen, but adb working. When i type "ls /dev/block" in ADB shell it shows loop0-loop7 and nandf, so it is not seeing the nand I have seen other forums that when I type "dd if=/dev/zero of=/dev/block/nanda" it will erase the nand, and the tablet is force booting into fel mode (flash mode), but it not erasing beacuse the recovery is not for this tablet and it not seeing the nand.
View 2 Replies
View Related
Feb 27, 2014
I've got a Chinese phone Pomp W89 and I wanted to put a custom rom on it, I tried to install cwm and twrp but I've found out they don't support my device, so I went on needrom and found a recovery file for my phone which I downloaded and used rom manager to flash.
But I've then worked out the file was corrupted and since then I can't get into recovery mode the phone just showed a brief white screen then boots up normally, it does say recovery mode at the bottom but never goes into it, I then found a complete recovery file for my phone and flashed that but the same thing happens without the brief white screen just a black one then it boots up normally.
I've tried cwm to flash and several other programs and I also then tried the terminal emulator to flash which I think was successful but the exact same thing happens, I just don't understand if the new recovery.img has been flashed why would nothing change? There was already a recovery.img on the phone which I kept a copy of and that makes no difference either.
I was going to flash using my computer but I have windows 8 and can't get the usb drivers to install for the phone.
View 1 Replies
View Related
Jul 8, 2010
Bought a HTC Desire and just cannot get its camera flash working. Obviously having hard time with people at the shop ("have you tried taking these pictures at night, maybe it understands that it is still daytime even if you tried it in bathroom"). My dumb brain would suggest that manual - flash always on (unless that 5% battery limit is not hit), automatic - depends on sensor income, off - no flash. Really hard to search for stuff like that in forums as usually "flash not working" refers to Adobe Flash.
View 1 Replies
View Related
May 3, 2010
can anybody find a flashlight app that uses the camera flash? Sent from my ADR6300 using Tapatalk
View 1 Replies
View Related
May 20, 2010
sorry if someone answered this but I couldn't find it, is there an app for using the flash as a flashlight without going into the camera app? I would prefer a toggle switch like the one made by curve fish, Sent from my ADR6300 using Tapatalk
View 13 Replies
View Related