Questions tagged [camera-flash]

58 questions
2
votes
0 answers

Why when I tern flash light on my app go to stack?

I work with camera 2 API to carry out my custom camera according google sample but with some additions that my app requires. All was good until I added permanent support of flash light protected final void setAutoFlash(CaptureRequest.Builder…
Sirop4ik
  • 4,543
  • 2
  • 54
  • 121
2
votes
2 answers

android : camera.getParameters() crashes app

i'm using this code to use the camera LED as flashlight but it crashes when the service starts. Using Log.w() statements i found it stops at param = camera.getParameters();. i have included the android.permission.CAMERA in my manifest. i don't…
Anonymous
  • 4,470
  • 3
  • 36
  • 67
2
votes
2 answers

How to change color of Camera LED / Flashlight in Android

I'm trying to change color of Camera LED / Flashlight in Android. is their any way to achieve this ? I know we can change colors on Nexus One Track Ball. I'm trying to change Camera LED / Flashlight color in Android like that.
Bishan
  • 15,211
  • 52
  • 164
  • 258
2
votes
3 answers

Camera Flash is not working

I am trying to make an extension for marmalade, which turns on and off the camera flash in iPhone. I am referring to this answer on SO about using camera flash. I've put the exact code what he has mentioned and [device…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
1
vote
0 answers

Test if flash is on/off in Espresso / UiAutomator test

I am writting some tests regarding the open/close of the flash to allow better images capturing from the camera. How can I know inside an Espresso/UiAutomator test if the flash is on or off?
svprdga
  • 2,171
  • 1
  • 28
  • 51
1
vote
0 answers

iOS - How to check on/off status of Flashlight / Torch / Flash

I would like to know if the user has turned on the light over the control center before starting the app. I have a whole simple test app with the following code in the viewDidLoad. for(AVCaptureDevice *device in [AVCaptureDevice devices]){ …
Stefan
  • 190
  • 1
  • 11
1
vote
4 answers

Flash mode selected but camera2 wont capture image with those flash modes

I am working on an application that involves a manual camera in which it has its own flash button it rotates through from OFF to ON to AUTO. I am calling a switch statement with an onClickListener to do this. private void setFlash() { switch…
justin_graham92
  • 577
  • 1
  • 4
  • 11
1
vote
1 answer

Camera2 api problems firing flash/no flash images

I will explain my case. I'm trying to do an application in which every 5 seconds will take an image, one without flash, and then after 5 seconds one with flash, and repeat this every time. So it will take one without flash, one with flash, one…
Ivan
  • 782
  • 11
  • 23
1
vote
0 answers

How to turn on flash on camera2 api correctly?

I use standard google sample canera2api and here I try to tenr on CONTROL_AE_MODE_ON_ALWAYS_FLASH how I am doing it, I changed this line private void captureStillPicture() { try { final Activity activity = getActivity(); if…
Sirop4ik
  • 4,543
  • 2
  • 54
  • 121
1
vote
1 answer

UIImagePickerController custom FlashMode button is not working on IOS 10 (swift)

I know that a question of this type is already asked but I Debugged it in bit detail, and i came to this point that when i switched this flag off self.picker.showsCameraControls = false then the custom flash button doesn't respond but if I'll…
Steve
  • 1,022
  • 2
  • 9
  • 30
1
vote
1 answer

Setting camera flash not working in iOS 10

Cannot set the camera flash properly for iOS versions 10 and above (this is working correctly in iOS 9). It always defaults to UIImagePickerControllerCameraFlashModeAuto. Here's my code: UIImagePickerController *picker = [[UIImagePickerController…
1
vote
0 answers

Android: Turn off flash light with intent

I am trying to disable android camera flash by default using intent, So I have this after googling and research final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Parameters p = intent.getParameters(); …
Blaze
  • 2,269
  • 11
  • 40
  • 82
1
vote
1 answer

Windows 10 Phone app Turn on flash (lamp)

I have a problem. I m a new windows phone 10 developer and i have a problem. How can i turn on flashlight on a Lumia 930 ? I can t find any answer on internet. Thx alot, Regards
1
vote
0 answers

FLASH_MODE_TORCH not working on Samung Galaxy SIII GT-I9300 Android 4.1.2, SDK 16

I don't have the ability to test on the Galaxy SIII so I was hoping somebody faced the same issue. It used to work fine according to the user, but suddenly it stopped working. Reboot, Reinstall, same issue. The LED on the back (Flash) doesn't turn…
Diego
  • 4,011
  • 10
  • 50
  • 76
0
votes
0 answers

setTorchMode:1491: Torch for camera "0" is not available due to an existing camera user

class flashTask extends AsyncTask { public Void doInBackground(Void... voidArr) { CallReceiver.this.flashRunnable(); return null; } } void flashRunnable() { for (int i = 0; i <…