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
0
votes
1 answer

How to create a flash light as well as strobe effect. Need help to fix strobe effect

I am trying to create an flash light application which contains strobe function. I have successfully achieved flash light on/off effect but I am running into trouble with strobe effect. Whenever I try to create the strobe effect the application…
android_newbie
  • 667
  • 2
  • 14
  • 32
0
votes
2 answers

How to keep flash on when activity goes to background

I am developing a very simple flashlight application, while I have successfully achieved what I was looking for, I would like to perform it that way I want it to. Currently my flashlight remains on while my activity is active, as soon as I hit the…
android_newbie
  • 667
  • 2
  • 14
  • 32
0
votes
4 answers

Flashlight app getting closed in background

I am developing a flashlight app and the thing is that the app is working as expected, but not when "home" or "back" key is pressed. i want my app to keep the torch light on even when the user presses "Home" key so that user can do other works while…
Aishvarya Jaiswal
  • 1,793
  • 6
  • 34
  • 72
0
votes
1 answer

Turn ON Flash light every second in Android?

I trying to turn ON the phone flash light every second. I have been searching but nothing found useful. This is the code that I am using: Thread t = new Thread() { @Override public void run() { seconds = 0; try { while (seconds<11) { …
Roberto Zuniga
  • 437
  • 1
  • 7
  • 16
0
votes
0 answers

How to on the Camera Flash for a long time like Torch Light

In my application, when i will click a button, it should open the camera flash for a long time like torch. This implementation is pretty easy in Android. But in BlackBerry i did not get any direct API for this. I have tried some sort of things by…
Arindam Mukherjee
  • 2,255
  • 11
  • 48
  • 83
0
votes
1 answer

Android Flashlight on Motorola RAZR

Code below works great on Wildfire S but no on Motorola RAZR, how it's possible and how to fix it. I saw few posts about that but without answer. if (camera==null) camera=Camera.open(); camera_parameters = camera.getParameters(); …
Jakub Pomykała
  • 2,082
  • 3
  • 27
  • 58
0
votes
1 answer

What is missing in order to make my android camera flash turn on?

I am trying to create a basic find my phone application and I'm running into a bit of an issue. So far I am able to text a code word to my phone and have it play a song. Next, I would like to be able to text a different key word and have it turn…
Sarah
  • 2,713
  • 13
  • 31
  • 45
0
votes
1 answer

LED Flashlight on Galaxy Nexus: app passed NULL surface

I've been trying to get the LED flashlight come on on my Galaxy Nexus, using several different solutions on StackOverflow: LED flashlight on Galaxy Nexus controllable by what API? Opening Flashlight of Galaxy Nexus But I'm still getting this error,…
Kieron
  • 1,982
  • 2
  • 18
  • 17
0
votes
1 answer

Windows Phone turn flash on in background

I am working on a tools app and I need a way to turn on the camera flash when I click a tile, then keep it on in the background and turn it off once I click the tile again. I don't need any help with the tile yet all I want to know is what I can do…
Gerharddc
  • 3,921
  • 8
  • 45
  • 83
0
votes
1 answer

Android flashlight app

I can't find a straight forward answer on how to build a flash light app in Eclipse Android. How would I create this?
Cameron Tarbell
  • 81
  • 1
  • 2
  • 4
0
votes
1 answer

turn on android LED light "enabletorch" for X amount of time?

I have the code below that turns ON my phones LED flash every time the button is clicked, but I also need the LED to turn OFF automatically after 3 seconds. Not sure how to do it, please help. input type="button" onclick="ipwajax('enabletorch')"…
Sam
  • 3
  • 1
  • 6
0
votes
3 answers

How to stop handler inside BroadcastReceiver after phone call is answered or canceled?

I'm trying to create simple Android application that simulate camera flashlight blink while phone call is received. If the user answer or cancel the call, I want to stop the flashlight blink. I'm using Handler and Runnable to simulate blinking, but…
Kostadin
  • 41
  • 1
  • 5
0
votes
1 answer

Android: Check if Flash Torch Mode is activated does not work

[WORIKING CODE / 22.01.2013] Following code is not working and I don't know why. I set the permissions and the button so that it should works... I set the permissions in the manifest like this:
Marco Seiz
  • 944
  • 5
  • 19
  • 40
0
votes
3 answers

App Crash When Trying to Turn Flashlight On

I'm trying to make a Flahlight app, but when I press the "Flashlight" button to turn the flashlight on, the app crashes. Here's my code: Manifest:
Qruez
  • 3
  • 5
0
votes
2 answers

FLASH_MODE_TORCH working/not working

I wanted to build a flashlight app using the following code. It's working on a friend's HTC Desire HD, but it isn't on my RAZR and a friend's Galaxy Nexus. I also tried the solution with focus_mode_infinity, but there's still no success. package…