Questions tagged [flashlight]

Most phones (and even tablets) have one or more camera/s. For optimal lighting, a white LED (or more than one) is used to illuminate the scene and act as a flash light.

Most phones (and even tablets) have one or more camera/s. For optimal lighting, a white LED (or more than one) is used to illuminate the scene and act as a flash light.
Some apps use this LED to turn the device into a portable torch.

369 questions
3
votes
5 answers

How turn on flashlight using Barcode Detection in Google Play services?

I'm trying to reimplement Redlaser barcode Scanner using Google play services. And face to the problem with flashlight. Android hardware.Camera object can't be using in common with CameraSource from gms.vision. Is there any opportunity to working…
3
votes
1 answer

Turn on the flashlight in android Lollipop Programatically

I have been trying to turn on Flashlight in android lollipop but the camera Api is deprecated and hence donot turn on the Flashlight. Has anyone tried doing that?
ChArAnJiT
  • 238
  • 1
  • 7
  • 23
3
votes
2 answers

Flashlight App crashing every time in Windows Phone

I am trying to operate a flashlight app through TorchControl Class in Windows Phone application: Here is my code private static async Task GetCameraID(Windows.Devices.Enumeration.Panel desiredCamera) { …
Prajjwal
  • 49
  • 2
  • 10
3
votes
2 answers

Turn on Flash and Front camera at the same time on iPhone

I need to use the Front camera and have the back light LED turned on in iPhone. how can I do that? I can open the front camera using this code: - (void) turnCameraOn { if ([UIImagePickerController…
rendellhb
  • 149
  • 2
  • 9
3
votes
1 answer

Flashlight turns off when other apps are started. Android

I am working on Flashlight app with Widget. When I turn on Flashlight with Widget flashlight is on, and when I start some app, the flashlight turns off. Why is this happening? Why can't my Flashlight run in background? How can I prevent this? I…
user3231871
  • 191
  • 3
  • 17
3
votes
2 answers

Strobe Light not working properly

I have written a code for strobe light from various sources but the problem is it is not working properly. Here is the code: StrobeLight.java import android.app.Activity; import android.app.Dialog; import android.content.Context; import…
user3278077
3
votes
1 answer

How to give the webpage a light in the darkness effect using mouse cursor

I'm interested in making an effect of a totally dark webpage (and in dark I mean dark as night without lights at all) and give the mouse cursor a light effect to light the surrounding. What should I use to achieve that kind of effect? I've tried…
3
votes
2 answers

Turning on the flashlight on Android? Most compatible approach?

I just started programming for Android after being a long time Java developer and I've created a little flashlight app (like there's not enough already xD). I realize that there are so many different phones and I've read its sometimes hard to get…
neptune692
  • 353
  • 1
  • 4
  • 12
3
votes
2 answers

android flash turn on/off using button while camera is running

I saw that there are many questions liek this but I didn't find any way. In my app I have my own Camera with some options , and also have button named btnFlash for turning on/off camera's flash light while camera is running. I tried many ways, but…
Hayk Nahapetyan
  • 4,452
  • 8
  • 42
  • 61
3
votes
3 answers

How to turn ON and OFF Device flash light?

I want to turn on only camera flash light (not with camera preview) programmatically in Android. I googled for it but the help I found was not working on my Samsung Galaxy ACE. By using this code able to turn on for few seconds after that it goes to…
RajaReddy PolamReddy
  • 22,428
  • 19
  • 115
  • 166
3
votes
1 answer

Sleep oder wait in For-Loop

I'm trying to turn the LED on and of for a particular lenght (out_tic), based on a given Text in Morse-Code(Text). I tried to solve this with a "postDelay" and also with sleep() or wait() , but the flash has allways the same lenght or the app…
coemu
  • 195
  • 1
  • 11
3
votes
1 answer

Can we reduce camera flash light brightness in android?

I want to change the camera flash light brightness in my android application... Is it Possible?
Siva
  • 446
  • 2
  • 9
  • 24
2
votes
2 answers

Quickly (100Hz or more) blinking of camera flashlight LED

I am trying to write a variable brightness flashlight app by using PWM (might use it for communication later). For that I need fast switching of the camera LED (say 100-200Hz), which is not possible through the Camera API's setParameters…
user1219082
  • 29
  • 1
  • 3
2
votes
0 answers

Torch working on Android but not in iOS (ReactJS)

I'm building a QR scanner inside a ReactJS web app that is supposed to run on both Android and iOS. However, I cannot get the torch/flashlight to work on iOS. I'm using the @blackbox-vision toolbox to handle both the torch and the QR scanner. As far…
Anteino
  • 1,044
  • 7
  • 28
2
votes
2 answers

How can I turn on camera flashlight in Symbian, using Qt Mobility

How can I turn on camera flashlight in Symbian, using Qt Mobility?
user707895
  • 351
  • 1
  • 4
  • 15