LED Flashlight,

Search This thread

Phil750123

Senior Member
Apr 6, 2010
829
137
Birmingham, UK
Just a thought guys, if this isnt already out there which i cant seem to find.


Could anyone make a app that turns the flash light to on so it can
be used as a light?
Seen it done on other phones would just be a nice feature.
 

jayshah

Senior Member
Jul 2, 2009
229
145
We need root for this.

Wait for root to go public, then this will probably follow (I doubt you need write access to /system for it).
 

th3

Senior Member
Apr 13, 2010
1,927
279
UK-KSA-S.E.Asia
Just a thought guys, if this isnt already out there which i cant seem to find.

Could anyone make a app that turns the flash light to on so it can

be used as a light?
Personally I doubt it will be feasible. Too many symbian phones we messed around with for years trying to make it happen, unsuccessfully (in some way or another). Would've been excellent if it was accomplished though. Even just a method to blink the flash on a press would be excellent.


Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
 

Bart1981

Senior Member
Dec 4, 2006
1,093
139
Utrecht
With root it's possible for the Nexus so why not for the Desire. But we still have to wait for the Root acces. Damn waiting takes so long!
 

bakedecake

Senior Member
Mar 16, 2009
131
6
This function is built into the Quick Settings app you can get for free in the market isn't it?
 

th3

Senior Member
Apr 13, 2010
1,927
279
UK-KSA-S.E.Asia
Yeah, that option just enables a bright white screen for now.


Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
 

Damunix

Member
Apr 1, 2010
30
1
well it seems to be possible without root access, while I can active the flashlight led with a

echo 125 > /sys/devices/platform/flashlight.0/leds/flashlight/brightness

If I have time, I will make a little widget that will do it
 
Last edited:

Brodel

Senior Member
Oct 21, 2008
120
15
well it seems to be possible without root access, while I can active the flashlight led with a

echo 125 > /sys/devices/platform/flashlight.0/leds/flashlight/brightness

If I have time, I will make a little widget that will do it

That would be awesome if it's possible, it's pretty much the only feature that I think is missing from the Desire as far as I'm concerned.
 

Damunix

Member
Apr 1, 2010
30
1
Ok I made some tests, it will not be a problem to develop a simple application (would be better than a widget ?) with a variable light power
 
Last edited:

Wishmaster83

Member
Jul 1, 2008
20
3
Great news!
I think, that an application would be enough, since it isn't an often used feature (But VERY usefull when needed :))
 

Damunix

Member
Apr 1, 2010
30
1
File in attachment, this is just a "trash code" program, just for you to let me know if this is what you where looking for!

Feedback are welcome
 

Attachments

  • flashApp.apk
    14.4 KB · Views: 2,299

Phil750123

Senior Member
Apr 6, 2010
829
137
Birmingham, UK
Thanks for the work guys much appreciated.

App works fine :)

Don't want to sound picky and that, but basically what i was after was the flashlight to use as a light, so just a on / off would be fine! if could make the on as bright as the flash ?

Just wondering, im guessing a lot of this is done in shell script and c?
Just learning C at the moment , doing a forensic computer degree at uni.
 

jamiepyrite

Senior Member
Jan 17, 2007
96
0
Yay! It works :) On isnt as bright. Would prefer an on/off toggle only. Either a full screen button or starting the actual app will toggle it.
 

Wextercz

Senior Member
Apr 10, 2009
190
20
NICE !!! work fine. but ON is not as bright as Flash is ... :( do something with it, please...
 

513

Senior Member
Sep 4, 2009
142
10
Brussels
Yeah cool, it is working great.

The light isn't that bright but it is a good start.

You just need to make it look nicer, add a widget and it is ready for the Market.

Also, I think there is a conflict with the Camera, I tried to take a clip with the light ON but it switched OFF as soon as I opened the camera app.
 
Last edited:

moorie

Senior Member
Aug 5, 2008
52
5
Possibly the most useful app out there... if only on was full power!!

Nice one though!!
 

mmaannggee

Member
Oct 2, 2008
10
0
Thx man.. App to use everyday/night ;P.. Do you think it can be little stronger without not burn the led?

Sent from my HTC Desire using the XDA mobile application powered by Tapatalk