Android @ MoDaCo: App to flash the keypad lights when you receive a text. - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

App to flash the keypad lights when you receive a text. Updated! Really works now (tm)
-----


#1 User is offline   Timmmm 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 23-October 09
  • Devices:T-Mobile Pulse (Huawei 8220)

Posted 16 December 2009 - 10:43 PM

Hello! As some people on here have noticed, the Pulse has no kind of notification LED. I have instead written an app to use the keypad backlight as a notification light.

Caveats:

* Requires root.
* Will not cure AIDs.

Possible in future:

* Detect missed calls
* Configurable flash patterns for different events?
* Better control over the flasher service, if I can be bothered.
* Instead of executing a su command, it would be better if everyone (Paul?) modified their custom ROMs to include the command

chmod 0666 /sys/class/leds/keyboard-backlight/brightness


in init.rc.
* Could someone make me a better icon? :-)

Enjoy!

Version 1.4 attached (it's inside the zip) I forgot to change the version number in the manifest I think so you may have to uninstall the old version first.

Attached File(s)


This post has been edited by Timmmm: 09 January 2010 - 10:59 PM

1

Sponsored Links


#2 User is online   rjm2k 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,091
  • Joined: 04-December 09

Posted 17 December 2009 - 05:33 AM

View PostTimmmm, on Dec 16 2009, 22:43, said:

Hello! As some people on here have noticed, the Pulse has no kind of notification LED. I have instead written an app to use the keypad backlight as a notification light.

Caveats:

* Requires root.
* Currently doesn't auto-start on boot - you need to run the app once each time you turn the phone on and then exit it.
* May be buggy. One time I used it the flashing was very erratic.
* Will not cure AIDs.

Possible in future:

* Autostart on boot (this is next on the list)
* Detect missed calls
* Configurable flash patterns for different events?
* Better control over the flasher service, if I can be bothered.
* Instead of executing a su command, it would be better if everyone (Paul?) modified their custom ROMs to include the command

chmod 0666 /sys/class/leds/keyboard-backlight/brightness


in init.rc.
* Could someone make me a better icon? :-)

Enjoy!



That's great Timmmm, any chance of a non-root version? Do you know if the lights can be controlled through the android api and therefore thru a java app rather than native?

0


#3 User is offline   Shuflie 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 26-November 02
  • Location:Belfast
  • Devices:Diamond II, Nexus One
  • Twitter:@Shuflie

Posted 17 December 2009 - 09:41 AM

View Postrjm2k, on Dec 17 2009, 05:33, said:

That's great Timmmm, any chance of a non-root version? Do you know if the lights can be controlled through the android api and therefore thru a java app rather than native?

Can you try using adb to see if you can issue the command that Timmm want in init.rc? On a more practical note is this program installed as a flash update through fastboot? I unpacked the zip and there is no .apk inside to install it with.

Posted Image
0


#4 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 17 December 2009 - 09:55 AM

Rename the zip to APK and install?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#5 User is offline   xangma 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 402
  • Joined: 16-May 08
  • Twitter:@xangma

Posted 17 December 2009 - 09:59 AM

I just opened the zip I downloaded and it has an apk in it =/

0


#6 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 17 December 2009 - 10:01 AM

If you're on a Mac it sees the APK inside and unzips that too! ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#7 User is online   rjm2k 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,091
  • Joined: 04-December 09

Posted 17 December 2009 - 10:14 AM

View PostShuflie, on Dec 17 2009, 09:41, said:

Can you try using adb to see if you can issue the command that Timmm want in init.rc? On a more practical note is this program installed as a flash update through fastboot? I unpacked the zip and there is no .apk inside to install it with.



I can try, however with the dec update I believe it's not possible to get root anymore and this app needs root.

0


#8 User is offline   Shuflie 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 26-November 02
  • Location:Belfast
  • Devices:Diamond II, Nexus One
  • Twitter:@Shuflie

Posted 17 December 2009 - 10:49 AM

View PostPaul, on Dec 17 2009, 10:01, said:

If you're on a Mac it sees the APK inside and unzips that too! ;)

P

That would explain it then ;)

Posted Image
0


#9 User is offline   Timmmm 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 23-October 09
  • Devices:T-Mobile Pulse (Huawei 8220)

Posted 17 December 2009 - 01:10 PM

View Postrjm2k, on Dec 17 2009, 05:33, said:

That's great Timmmm, any chance of a non-root version? Do you know if the lights can be controlled through the android api and therefore thru a java app rather than native?


Unfortunately not. I did find some hidden Java methods:

PowerManager.isScreenOn() is useful.

and

PowerManager.setScreenBrightness(int) (or something like that).

however the latter sets both the screen and key backlights.

It seems that Android does support notification lights. I don't have time at the moment, but could someone see if creating the following symlink results in the desired behaviour:?

/sys/class/leds/button-backlight/brightness -> /sys/class/leds/keyboard-backlight/brightness

Also might be worth trying

/sys/class/leds/green/brightness -> /sys/class/leds/keyboard-backlight/brightness

This is the actual code that sets the light values: http://android.git.kernel.org/?p=platform/...c6e58251521997f

0


#10 User is offline   Shuflie 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 26-November 02
  • Location:Belfast
  • Devices:Diamond II, Nexus One
  • Twitter:@Shuflie

Posted 17 December 2009 - 01:29 PM

Doesn't seem to do anything on my pulse, I use HandcentSMS as my messaging app, but even when I enable notifications in the default messaging app nothing lights up when I receive an SMS.

Posted Image
0


#11 User is offline   Timmmm 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 23-October 09
  • Devices:T-Mobile Pulse (Huawei 8220)

Posted 17 December 2009 - 01:51 PM

View PostShuflie, on Dec 17 2009, 13:29, said:

Doesn't seem to do anything on my pulse, I use HandcentSMS as my messaging app, but even when I enable notifications in the default messaging app nothing lights up when I receive an SMS.


Erm, it seems I accidentally removed the critical line the starts the actual service! D'oh! Fixed version attached to the original post.

0


#12 User is offline   Shuflie 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 26-November 02
  • Location:Belfast
  • Devices:Diamond II, Nexus One
  • Twitter:@Shuflie

Posted 17 December 2009 - 02:08 PM

That seems to work, and I don't even need to the default notifications turned on ;) The flashing is a bit erratic, and seems to turn off and then back on again after a while, is that intentional?

Posted Image
0


#13 User is offline   bas-r 

  • Enthusiast
  • PipPipPip
  • Group: MoDaCo Plus
  • Posts: 184
  • Joined: 27-October 09
  • Gender:Male
  • Location:Netherlands
  • Devices:HTC Desire Z

Posted 17 December 2009 - 02:16 PM

View PostShuflie, on Dec 17 2009, 15:08, said:

That seems to work, and I don't even need to the default notifications turned on ;) The flashing is a bit erratic, and seems to turn off and then back on again after a while, is that intentional?


It's not a bug, it's a feature ;)

0


#14 User is offline   stupidm4n 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 54
  • Joined: 04-January 08
  • Devices:pulse

Posted 17 December 2009 - 05:43 PM

love it, is it possible to just have the green and red flash, say green for sms and red for missed call

0


#15 User is offline   xangma 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 402
  • Joined: 16-May 08
  • Twitter:@xangma

Posted 17 December 2009 - 05:57 PM

View Poststupidm4n, on Dec 17 2009, 17:43, said:

love it, is it possible to just have the green and red flash, say green for sms and red for missed call


You're in it now Timmmm haha

0


#16 User is offline   Bigsy 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 41
  • Joined: 09-December 08

Posted 17 December 2009 - 06:14 PM

Great little app, I look forward to improved versions ;)

Maybe get this pushed in to the custom rom, I mean who wouldn't want the option of doing this?

0


#17 User is offline   bounty123 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 155
  • Joined: 04-November 09
  • Location:Budapest, Hungary
  • Devices:HTC Desire S

Posted 17 December 2009 - 11:03 PM

View Poststupidm4n, on Dec 17 2009, 18:43, said:

love it, is it possible to just have the green and red flash, say green for sms and red for missed call


I love this idea!

0


#18 User is offline   Timmmm 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 23-October 09
  • Devices:T-Mobile Pulse (Huawei 8220)

Posted 18 December 2009 - 12:15 PM

View Poststupidm4n, on Dec 17 2009, 17:43, said:

love it, is it possible to just have the green and red flash, say green for sms and red for missed call


Sadly not. There's only one logical light, even if it is made of multiple LEDs.

0


#19 User is offline   Timmmm 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 23-October 09
  • Devices:T-Mobile Pulse (Huawei 8220)

Posted 19 December 2009 - 06:37 PM

The version attached to this post might fix the erratic lights, and should autostart on boot.

Unfortunately I haven't tested it, because when I restarted my phone to test it, android (or huawei) crapped out *again* and it wouldn't boot. I have to say the reliability of this phone (or maybe android itself) leaves something to be desired.

Anyway, feel free to test it. Please let me know if it works properly now!

Attached File(s)


0


#20 User is offline   Bendolfc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 47
  • Joined: 06-December 09

Posted 25 December 2009 - 10:09 PM

Hi,

Useful little app, can't believe something similar isn't built in. 1.2 doesn't seem to work for me, installs and starts ok but no flashing. The one in the first post works though.

0


Sponsored Links

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!