Flashlight app (call, sms)

Search This thread

Gilg@mesh

Senior Member
Jan 15, 2009
2,663
702
Stockholm
Hi

just jumped from Nexus One to Nexus S... I'm using flashlight alerts on my Nexus One when I get a call or sms the LED starts to blink.. but it don't seem to work with the NS... is there any program that work? I'm using NoLED but thats for the screen

thanks
 

rborg

Senior Member
May 18, 2007
57
5
Samsung Galaxy S20
I whipped up a quick Tasker task that works using Tesla to blink the LED. It is not complete. You will need to set up a new profile and context. A Wait in the Goto loop might be a good idea too. And some logic to have it stop.

Here is the xml

<class cl="Task" sr="">
<nme>light</nme>
<id>26</id>
<class cl="Action" sr="act1">
<code>444</code>
<class cl="IntArg" sr="arg1">
</class>
<class cl="IntArg" sr="arg0">
<val>2</val>
</class>
</class>
<pri>10</pri>
<class cl="Action" sr="act0">
<class cl="IntArg" sr="arg3">
</class>
<class cl="IntArg" sr="arg2">
<val>1</val>
</class>
<code>547</code>
<class cl="StringArg" sr="arg1">
<val>0</val>
</class>
<class cl="StringArg" sr="arg0">
<val>%TESLACOUNTER</val>
</class>
</class>
<class cl="Action" sr="act2">
<class cl="IntArg" sr="arg3">
</class>
<class cl="IntArg" sr="arg2">
<val>1</val>
</class>
<code>547</code>
<class cl="StringArg" sr="arg1">
<val>%TESLACOUNTER + 1</val>
</class>
<class cl="StringArg" sr="arg0">
<val>%TESLACOUNTER</val>
</class>
</class>
<class cl="Action" sr="act3">
<class cl="IntArg" sr="arg0">
<val>2</val>
</class>
<code>135</code>
</class>
</class>


Sent from my Nexus S using Tapatalk
 

rborg

Senior Member
May 18, 2007
57
5
Samsung Galaxy S20
Edit: it is set up to increment a variable for every toggle of the light. I'm sure this could be better if I spent more than 3 minutes. Let me know.

Sent from my Nexus S using Tapatalk
 

rborg

Senior Member
May 18, 2007
57
5
Samsung Galaxy S20
Ill write a full message tomorrow with links and complete the script.
Im finding that I can use tasker instead of many standalone apps. Wrote a very clean task and widget task to reverse lookup calls not in address book on 411.ca, if any Canadians are interested. Better than any of the apps I have tried. Amazing how easily Tasker can parse html.

sorry but I did not understand anything :) could you please explain i detail, thanks!



Sent from my Nexus S using Tapatalk
 

rborg

Senior Member
May 18, 2007
57
5
Samsung Galaxy S20
Sorry. Got lost in some other stuff and forgot about this. Latest tasker supports the led natively. Give me an exact situation and ill post a script that should work for you.

Ryan

Sent from my Nexus S using Tapatalk
 

Gilg@mesh

Senior Member
Jan 15, 2009
2,663
702
Stockholm
Hi

I need the LED to start blink when I get SMS and incoming calls, if this is what you mean with situation :)

Sent from my Nexus S using Tapatalk
 

areicko

Senior Member
May 7, 2010
129
3
I tried to make a notification stuff working with tasker and teslaLed. My problem now is that I'm not able to shut down the flashlight after a few seconds (it stays on until I shut it down manually).

Could anyone post a tutorial for tasker so that I can correct this ?

Thanks

[EDIT] I made a few scripts for tasker, they still need to be updated. Anyway, if someone need them, here they are :
http://dl.dropbox.com/u/2719865/FLASHSms.prf.xml
http://dl.dropbox.com/u/2719865/FLASHSonnerie.prf.xml
http://dl.dropbox.com/u/2719865/MISSEDCALLCLEAR.prf.xml
http://dl.dropbox.com/u/2719865/MissedCallNot..prf.xml
 
Last edited: