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

Getting NullpointerException when trying to start Flashlight

Im working on a program where you can start your flashlight in your phone. I've searched alot and got the same answear on how to do. But when I try to do the same i get a nullpointerException So my XML is looking like `
-1
votes
1 answer

Flashlight crashes systems Camera App

I am making a Flashlight app, currently its widget. I was wondering how would I emulate functionality of samsungs assistive light widget (http://www.youtube.com/watch?v=PYR9jqo0vvc&feature=player_embedded#!)? If I turn my light on, the camera app is…
urSus
  • 12,492
  • 12
  • 69
  • 89
-2
votes
1 answer

how could I check ( listener) whether torch is on or off by default in android? i know hot to open or off torch but is there any listener?

val cm=getSystemService(Context.CAMERA_SERVICE) as CameraManager val cameraID=cm.cameraIdList[0] cm.setTorchMode(cameraID,true) I want to open torch if it was not opened by user with their default torch app or widget.
-2
votes
1 answer

Flashlight app crash within secs of icon clicked

I have created simple flashlight app. There isn't any error at compile. but when the icon is clicked it just stop unexpectedly. I have tried in both physical android phone and emulator. both comes up with same result. I cant see any problem in the…
Marsh
  • 35
  • 6
-2
votes
1 answer

Check my android has flashlight

how can i check that my Android Device have camera flashlight? If Code so where should i put that to check my device flash availability. Tell me please every way to check and How can i open it. I have Android COCA Pierre alps P5000 MTK Device.
-2
votes
1 answer

How to keep screen from turning off when my flaslight app running?

Currently i am working on my first android project. When screen off led light also off any help guys.
-3
votes
1 answer

Xamarin - Morse code app usuing the flaslight

I am trying to make a morse code for a college project, what I'm trying to do is use a 2 dimensional array to save the morse code people input to a text file and then be able to load it from the text file, my logic was to was that within the array…
danihano
  • 1
  • 1
-3
votes
2 answers

how to implement button with flashlight blinking code in android studio

i want to add flashlight Blinking mode in android studio with a button. but i don't know that how can i put a code and how to implement this code with a button. because i want that if i press button then flashlight start blinking. can anyone tell me…
-5
votes
1 answer

How to make Screen become a flashlight?

I want to do what this app - Screen Flashlight does. I want to make the screen a bright flashlight. I am thinking should I just do an ImageView that is bright white in color - what color do I use? or is there a better way to do this?
user1406716
  • 9,565
  • 22
  • 96
  • 151
1 2 3
24
25