373 questions
1
vote
0
answers
55
views
Is it possible to turn on the camera flashlight in JavaScript on Windows?
I have a Windows 10 hybrid laptop/tablet that has a rear camera with flash.
I want to control the flashlight from an Electron app.
You can verify the availability of the flashlight with this ...
0
votes
0
answers
30
views
Flashlight cursor for a black background
I tried to replicate a flashlight-cursor (black background so the cursor illuminate the text), but it doesn't go down when you scroll down in the screen.
It is a large text (it's a short-story), so I ...
1
vote
0
answers
92
views
How can I control the camera flashlight strength from android 13 in Jetpack compose app
I see some open-source flashlight apps (FlashDim , Flashlight-Tiramisu) that can control flash strength from Android version 13+, but these apps build using Kotlin and XML (not in jetpack compose). So ...
1
vote
0
answers
178
views
How can I create flashlight cursor effect in Delphi?
For example this screenshot belongs to Daemon Tools (which is programmed in C#):
As you can see in this screenshot, I want to create flashlight effect which follows cursor.
How can I do this in ...
-1
votes
1
answer
55
views
Android application which shows toast message when user turns on and off the Flashlight from the System
I want to create an Android application using Java that displays the toast message when the user turns on or off the flashlight from the system and not from the app.
I discovered that there is no ...
2
votes
2
answers
3k
views
How to use device's flashlight in flutter?
I want to use device's flashlight in my flutter applications, to turn it on and off in certain intervals, and I am looking for a way to use it.
All packages I found on pub.dev are not dart 3 ...
1
vote
0
answers
136
views
Plugin Toggle Flashlight in react-native with expo
Im a search I found an old expo plugin, but it doesn't seem to work anymore. With ReactNative npx I was able to use it, but I would like to use it with expo, is there nothing to replace it to make ...
0
votes
1
answer
121
views
Android JAVA QUESTION How do I turn on both the Camera and the Phone Flashlight?
currently I am making an app that requires both the phone camera and the phone flashlight to be turned on.
However I am having this problem where 1 overwrites the other. Probably since they are both ...
1
vote
0
answers
159
views
Creating Flash Light with Voice Command JAVA Android Studio
I'm a total noob android studio, I've been doing a little project with the flashLight and with the switch button and create a voice button and say " turn on the flash light " then the light ...
0
votes
1
answer
247
views
SwiftUI: torch/flashlight turns off for no obvious reason when using app
I have a routine that toggles the torch/flashlight setting....
func toggleTorch() {
guard let device = AVCaptureDevice.default(for: .video) else { return }
if device.hasTorch {
...
2
votes
0
answers
366
views
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 ...
0
votes
0
answers
149
views
Turning on android flashlight in Qt6
Currently I'm trying to make an mobile app and I need to turn on the flash light of a mobile device. Actually I want to use it as a torch(On/off/blink etc). I searched in the qt docs and found QCamera ...
1
vote
0
answers
50
views
Control flash light on Win 10 Honeywell RT10W tablet
Does anyone have any experience or advice on how to access the flash light on a Honywell RT10W tablet? We use C # and WPF, the tablet has Windows 10 Enterprice LTSC.
The camera is successfully ...
0
votes
1
answer
378
views
How to get flash's default and maximum strength levels in Android
I've made a flashlight application and I want to add a functionality that allows the user to change flashlight's strength level if available
I already know how to change the strength level using a ...
3
votes
1
answer
1k
views
Turning on flashlight while using camera preview
I have the standard code of toggling flashlight:
@RequiresApi(Build.VERSION_CODES.M)
private fun flashlightOff() {
val cameraManager: CameraManager = getSystemService(Context....
0
votes
1
answer
358
views
Is using "android.permission.FLASHLIGHT" twice in the manifest page redundant?
I am new to XML and android app development in general. I cloned the code for an app from github, for learning purposes.
In the manifest page, this line is used twice <uses-permission android:name=&...
0
votes
0
answers
48
views
How to blink flash until the value in firebase is false
I want to keep blinking the flash forever until the value from firebase database is false. This is what I tried:
boolean mIsOn = false;
CameraManager camManager;
String cameraId;
@...
0
votes
1
answer
979
views
How to Implement FlashToggle button in the camera app using cameraX?
How to Implement FlashToggle button in the camera app using cameraX?
The flashlight should work properly along with the camera?
@RequiresApi(Build.VERSION_CODES.M)
private fun toggleFlash()
{
if(...
-1
votes
1
answer
416
views
How to increase and decrease the flashlight brightness in android
I have not found a single link for increasing and decreasing the flashlight intensity of Mobile phone. If any one know, Please provide a solution to me or refer a link.
2
votes
2
answers
2k
views
How to automatically turn on flashlight for video recording when the scene is dark?
My app shows a preview and video recording starts with a button press.
What I'm trying to achieve is to automatically turn on flashlight (torch mode) as soon as the video recording starts.
However I ...
0
votes
1
answer
1k
views
ZXing ZXingScannerPage: Torch / Flashlight not working (Xamarin.Forms)
I want to activate the torch/flashlight by starting the scanner page, but its just not working. No error message.
<?xml version="1.0" encoding="utf-8" ?>
<zxing:...
1
vote
2
answers
1k
views
Change Android flashlight brightness
I'm looking for something like this:
CameraManager cameraManager = (CameraManager) getSystemService(CAMERA_SERVICE);
cameraManager.setTorchMode("0", true);
cameraManager.setTorchLevel("...
1
vote
0
answers
200
views
How to I access the flashlight of my device?
I've been trying to access the flashlight and other sensors using Flutter on my device. However, for the time being, I need the access to the flashlight only (just for the turn-on ad turn-off event), ...
0
votes
1
answer
139
views
i want to record video with flashlight in flutter ,anyone know any plugin or way to do it in flutter
I want to record video along with flashlight turned on,
I tried many packages but none of are working,
Any body know how to do this in flutter.
2
votes
1
answer
286
views
How to turn on Front flashlight(not the rear one) of a android device
I developed a simple application to turn ON/OFF flashlight. But I couldn't find a way to turn on front flashlight of a device(if available).
Code for availability check :
boolean hasCameraFlash = ...
1
vote
1
answer
2k
views
How to take action based on detection of locked or off screen in flutter app
By using a flutter package from pub.dev named "torch_compat 1.0.2" for turning on/off flashlight in android app, how to turn off flashlight (trigger TorchCompat.turnOff()) when locked or off ...
0
votes
1
answer
859
views
Detect if flash light is already turned on
I have an app with a simple toggle switch that turns the flashlight on and off, I needed code I can use to check if the Flashlight is already on and then use that to change the toggle state of the ...
1
vote
0
answers
398
views
Torch for camera '0' is not available due to an existing camera user [XAMARIN.FORM]
i have a trouble that can't resolve.
I'm doing an Android Xamarin form application that use camera (like a scanner) to capture QR Code (for this i use Zxing NuGet Package).
The problem is occured when ...
3
votes
0
answers
1k
views
Getting Access denied finding property "vendor.camera.aux.packagelist" ERROR unsing Flashlight
In my application I am using the Smartphone's flash light when a Notification arrives. When a new Push notification arrives the following function gets executed.
private static void flashlight(...
1
vote
1
answer
4k
views
Flashlight for Android on Kotlin
You need to turn on the LED on your phone. I wrote a simple application. The LED should turn on when the app starts. The code matches the solutions on Stackoverflow
Application code:
package com....
1
vote
0
answers
839
views
Changing iPhone 11 torch/flashlight brightness with Swift does not seem to work properly
I'm trying to make an iOS app where I can turn the torch on and change the brightness.
I'm testing it on iPhone 11 with iOS 13.3.1 and Xcode 11.3.1
I used one of the solutions here: How to turn ...
0
votes
1
answer
1k
views
How to turn on/off flashlight when camera in use?
I'm creating an app that uses the camera and flashlight on android, the problem is that I need to turn flashlight on while the camera is running, I looked at some of the answers but none of them could ...
10
votes
2
answers
1k
views
iOS: Torch level on iPhone 11 Pro
I'm using AVCaptureDevice.setTorchModeOn(level) method to turn on the flashlight at variable brightness.
On my old iPhone SE it's working fine — I can clearly see 4 different brightness levels as I ...
2
votes
1
answer
200
views
Is there a way to turn on and off the flashlight of front camera? [duplicate]
I googled to find front flash light to use as a torch but I am not able to find any answer.
Is there a way or not if so ?
How to ?
-1
votes
2
answers
135
views
how to turn different devices flash light at the same time?
I want to turn on a different android device's flashlight at the same time.
Each android device turn flashlight with the different delay because of a hardware module for example
Samsung devices take ...
4
votes
1
answer
567
views
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://...
1
vote
1
answer
480
views
Torch: How to register a torch callback in another thread?
I am trying to register a CameraManager.TorchCallback using CameraManager.registerTorchCallback into a specific thread (ie: different from the UI Thread).
My code is quite basic for an Camera2 ...
2
votes
2
answers
879
views
Flashlight Fragment Android Studio
I have created a flashlight fragment for my app and I have implemented this code and turning the flashlight on works, but I can't turn it off.
I tried to switch the light on and off from one button or ...
0
votes
0
answers
138
views
How to use both camera preview and flashlight?
I am facing an exception "Camera is already in use". The thing i am doing is that i am using camera with seek bar as a magnifier and now i want to add flash functionality with it but i am facing this ...
2
votes
4
answers
1k
views
How do I delay a for loop in swift without interrupting the main thread?
I am trying to read through a string one character a time delaying .1 seconds before moving on to the next character.
I have tried implementing the delay function inside the for loop but it has two ...
0
votes
1
answer
494
views
torch.squeeze and torch.unsqueeze equivalent in Flashlight (arrayfire)
I'm porting PyTorch code to Flashlight code. What is an Arrayfire or Flashlight function equivalent for squeeze and unsqueeze in Pytorch?
processed_query = self.query_layer(query.unsqueeze(1))
...
2
votes
0
answers
145
views
Camera keeps being used by another user no matter what
I've tried countless times to get a flashlight to work with a tablet that I'm working with. It is supposed to be very simple testing-app to test the tablet in question, so nothing fancy.
I have tried ...
2
votes
1
answer
7k
views
Turn flashlight on/off In QRcodeScanner React native - Alternative Solution
Turn flashlight on/off In QRcodeScanner React native
I have follow the tutorial above, but still not working. It doesn't turn on the flash on pressing the touch opacity.
The issue is the same as the ...
1
vote
0
answers
77
views
Problem about value assignment in Arrayfire
I'm using Arrayfire and Flashlight evaluating a network.
auto tmp = output(af::seq(2, 10), af::span, af::span, af::span);
auto softmax_tmp = fl::softmax(tmp, 0);
output(af::seq(2,10),af::span,af::...
44
votes
11
answers
32k
views
How does CameraX library can turn ON/OFF the torch?
I am developing a feature with the possibility of switching the torch into ON/OFF states. Some days ago, we saw a new library from Google in io2019. I came up with an idea, why not use it.
After some ...
5
votes
2
answers
2k
views
Turn flashlight on/off In QRcodeScanner React native
im using react-native-qrcode-scanner and what i want to do is : when user press on a flashlight icon flashLight go on
i done this :
<QRCodeScanner
showMarker
onRead={this.onSuccess....
0
votes
0
answers
1k
views
Lamp package is not turning on flashlight on after Lollipop even after giving permissions in Flutter
I am making an app which use the camera as well as Flash. I have set the Permissions for Camera in Android Manifest file and Do the code for start Flash one button click but unable to On flash on Post ...
1
vote
1
answer
512
views
Is there a possibilty to activate front camera flash on Samsung phones?
Im currently trying to activate the built in front flashlight on a Samsung Galaxy A6, but the device provides information like there is no built in front flash.
I've already tried different methods, ...
2
votes
1
answer
2k
views
ffmpeg - how to remove white frames?
We doing videorecording with strobelight and the framerate is 30 fps.
If we set the strobe below 30hz we got a black frame in the video. if we set the strobe over 30hz we got a white frame.
I found ...
1
vote
0
answers
1k
views
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(...