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
5
votes
2 answers

Can't use the camera after turning off the flashlight

I'm writing an application for school and it has features that requires the camera to take pictures, crop them, upload them to a server and afterwards the user has to be able to turn on the flashlight (as part of some tracking we're doing). All the…
Decoid
  • 53
  • 5
5
votes
1 answer

BlackBerry - Possible to Hide Video Field?

I want to write an application like a Flashlight (with the help of the camera LED). Player player = javax.microedition.media.Manager.createPlayer("capture://video?encoding=video/3gpp"); player.realize(); VideoControl videoControl = (VideoControl)…
CAMOBAP
  • 5,523
  • 8
  • 58
  • 93
4
votes
4 answers

Setting Parameters.FLASH_MODE_TORCH doesn't work on Droid X 2.3

I am writing an app that sets the flash mode to torch. I have been testing the application on my Droid X, and the LED light does not come on. I tried it on a Droid Incredible and it worked fine. I can't figure out what the problem is. Here is…
Matt
  • 41
  • 1
  • 3
4
votes
1 answer

Can I control the flashlight without using android.hardware.Camera?

The use of front light option with zxing1.6 barcode scanner does not work on my Nexus One. I need to be able to use the flashlight in my app, but you can't have two instances of the camera running. Is there a way to use the flashlight without…
ddan
  • 295
  • 1
  • 5
  • 17
4
votes
1 answer

How to check in `react-native` that android device supports flashlight?

I have an icon of flashlight in my react-native application. I want to hide it if mobile device does not support flashlight or not has flashlight. In native android we have this solution: [https://stackoverflow.com/a/19599365/6644676][1]
Furqan
  • 787
  • 2
  • 13
  • 28
4
votes
1 answer

iPhone X Flashlight turns off when AR Camera is enabled

I am building an AR app that needs the flashlight to be turned on torch mode. Turning on torch mode and then enabling the AR scene works fine on my iPhone 8, but on the iPhone X, it the flashlight turns on and then off again. Is there some way…
evenodd
  • 2,026
  • 4
  • 26
  • 38
4
votes
0 answers

Turning on Front and Back Flashlight at same time

I am working on an Android app that can turns on both Front & Back flashlight at the same time. The app works on some phone (mine, Moto Z Play) but doesn't seem to work on many others (Samsung Galaxy J5, Moto Z2 Play, etc). When the user turns on…
Hashir Baig
  • 2,162
  • 15
  • 23
4
votes
1 answer

Android how to know if flashlight is on

I am using CameraManager and CameraCharacteristics I would like to know how to check if the flashlight is turned on
Stephan
  • 59
  • 3
4
votes
0 answers

firebase flashlight request timed out error [30000ms]

I am working on indexing firebase data to elastic search with firebase flashlight. After starting the app.js (indexer) in the library, it stops after 30000ms throwing: failed to index indexname/resource/ffd5517e-cab0-4bec-8989-4f6d760f18eb: Error:…
4
votes
1 answer

Android Turn on Flashlight Across ALL Versions of Android?

I've been working on an app that needs to turn the flashlight on and off on an Android phone. I need a way to turn on the flashlight across ALL versions of Android above API 15. The problem is, on older phones (API < 21), I have to use the…
Benjamin Owen
  • 608
  • 2
  • 10
  • 28
4
votes
2 answers

Torch / Flashlight app (android.hardware.camera is deprecated)

I have a torch / flashlight app using this code Turn On params = camera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_TORCH); camera.setParameters(params); camera.startPreview(); Turn Off params =…
KISHORE_ZE
  • 1,466
  • 3
  • 16
  • 26
4
votes
3 answers

Is there a way to use flashlight on in Android NOT using the Camera methods?

Please read the question before marking this as a duplicate. I'm trying to access the LED/Flashlight WITHOUT using the Camera methods shown in other code on this site. Thank you. I'm trying to use the flashlight/torch in Android. I have found…
4
votes
0 answers

Buffer Queue has been abandoned

I am writing an app to make a lantern by lighting the LED of an Android device. Most of the time it works well, but sometimes I see the message "E/BufferQueueProducer﹕ [unnamed-5260-0] queueBuffer: BufferQueue has been abandoned" at the…
4
votes
2 answers

How to set the camera light on torch in Tokbox?

I am using TokBox for an android project. I need to add a button which would turn the flash light on torch mode. Tokbox Publisher object already provides a swapCamera() method which switches between all the available cameras of the device. But I…
4
votes
2 answers

How do i get torch in flashlight app to turn off?

I have been making a flashlight app for android and have ran into several problems and have been able to fix them thusfar. But now when I run the app it will load up on my HTC one and run fine until I press the flashlight power button the fourth…
1 2
3
24 25