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

Android: Flashlight working fine in Galaxy 10 inch Tablet but not in Galaxy 7 inch Tablet

I am using android's Flash Light to turn on the flashlight from within my app, its working fine for 1.Sony Xperia 2.Galaxy Tab 10 inches But, accidentally the same code is not working for Samsung Galaxy Tab 7 inches. The method i have written is : …
Varun
  • 87
  • 1
  • 10
0
votes
2 answers

Customised flashlight flashing?

Is there a way to let the flashlight of the iPhone flashing several times after clicking a button? Like if I click a button the flashlight flashes only 3 times? I havent found information about this on the web. Could anyone help me with this? And…
MasterRazer
  • 1,377
  • 3
  • 16
  • 40
0
votes
3 answers

PhoneGap Android Torch Plugin doesnt work

PhoneGap Torch Plugin I am trying to get the torch plugin for phonegap/android to work. I used this code Github Torch Plugin I don't get any errors and I dont know where a possible mistake could be. I am using cordova-2.0.0 library. This is my…
AppRoyale
  • 403
  • 1
  • 5
  • 21
0
votes
1 answer

Android Flashlight force closing on return from other activity

I followed the tutorial here and managed to implement the flash light into my app. However I have come unstuck. The flash light button works wonders upon first load of the app, but when you go to another activity (page) and then come back to the…
Tim Hannah
  • 172
  • 2
  • 4
  • 13
0
votes
1 answer

Error with torch app Android 4.0.4 Nexus S i9020

I have a problem with a flashlight app Android 4.0.4 Nexus S i9020. I have tried dozens of suggestions posted here on stackoverflow but nothing worked for me. The app worked with Android version 2.3.6 but since 4.0.4 the torch has stopped…
Karim E.
  • 1
  • 1
-1
votes
1 answer

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.
Anwar Zahid
  • 227
  • 3
  • 10
-1
votes
2 answers

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 100 ms to turn flashlight and Asus devices take…
Edalat Feizi
  • 1,371
  • 20
  • 32
-1
votes
1 answer

Android camera2 enable auto flashlight

How can I enable default flashlight turn off or on feature in camera2, Can I enable settings options in it like default camera? I seen some example like here and here but they are using their own buttons to turn on or off flash, here I want to use…
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
-1
votes
2 answers

Android API Level 16 and higher Torch App

I found this Question but it doesn't work for me. (Nothing happens. Tested on Wiko Rainbow Jam) Android - Camera2 : The easiest way to turn on the torch light My App have to run on min. API Level 16! Is there an SupportCameraManager or an Library…
user3853134
  • 142
  • 1
  • 11
-1
votes
1 answer

can't access camera parameters as the class is deprecated

it may look like duplicate question but there is no code available to access camera or flashlight. whatever code available is old camera(android.hardware.Camera) class which is deprecated now.there is no new code for accessing the new camera…
Saurav
  • 15
  • 7
-1
votes
1 answer

Block the camera object for my widget (getParameters failed (empty parameters))

I'm trying to make a widget for turn off and turn on the flashlight from the main screen. My problem is that I don't find the way to block the camera for the widget. If I open the native camera while the widget flashlight is turn on, my widget lose…
-1
votes
1 answer

Cant make my flashlight work more than one time - android

Hello guys I'm trying to build my first application for android phones. It is a flashlight with some features. I have written the code for the On/Off button but with my exigisting code the On/Off button works only once and i dont know how to fix it…
Diakos
  • 37
  • 6
-1
votes
1 answer

Flashlight off by default

I have some code going with a flashlight button which can be turned on and off but it starts out being on by default, which it is of course not supposed to. Do you guys have any ideas on how to easily change this? if (!FrontCamera) { if…
AppCodinz
  • 1
  • 5
-1
votes
1 answer

App crashes when using SurfaceView in Nexus 5

I am trying to make a simple flashlight app that works on all Android devices, including the Nexus 5 (which requires that I implement the SurfaceView). But my app keeps crashing anytime I run it. What are my doing wrong? My full code is…
Donnie Ibiyemi
  • 971
  • 3
  • 15
  • 26
-1
votes
3 answers

Flashlight Dimming Error

When I put your flashlight dimmer coding into my app, I get this error "local declaration 'slider' hides instance variable" Here is the code: UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(20.0f, 20.0f, 280.0f,…
1 2 3
24
25