developing for the atrix LED notification light - Atrix 4G General

Since the LED is not on every android phone, i guess the adroid sdk doesn't have anything to support it. however, there are some apps on the market that support it, and i want to know how hard would it be to code something...
i currently use a blackberry and indeed the light is extremely useful. I bought a program that will let me assign a different color (even multiple colors) to almost all events , even particular contacts!
if some dev has some insight i would love to read about it

franciscojavierleon said:
Since the LED is not on every android phone, i guess the adroid sdk doesn't have anything to support it. however, there are some apps on the market that support it, and i want to know how hard would it be to code something...
i currently use a blackberry and indeed the light is extremely useful. I bought a program that will let me assign a different color (even multiple colors) to almost all events , even particular contacts!
if some dev has some insight i would love to read about it
Click to expand...
Click to collapse
i am very interested in this as well as i see it has multi color support as i have seen red, blue, purple green etc already... first step will be to get logs of the led getting lit for all colors and compare .... i am working on a variety of projects so if you would start with obtaining that i will look at logs and see where to go from there

Check out general forum. Sounds like the app called blink is what you want. There's a whole post about led for notifications.
Sent from my SGH-I897 using XDA App

i know there are apps for it, but the ones i have seen aren't open source therefore i can't learn from them unless the devs are friendly enough (haven't asked)
and for what i have read, most if not all aren't fully compatible with the atrix yet (mixed report on the blink one)

franciscojavierleon said:
Since the LED is not on every android phone, i guess the adroid sdk doesn't have anything to support it. however, there are some apps on the market that support it, and i want to know how hard would it be to code something...
i currently use a blackberry and indeed the light is extremely useful. I bought a program that will let me assign a different color (even multiple colors) to almost all events , even particular contacts!
if some dev has some insight i would love to read about it
Click to expand...
Click to collapse
The android SDK certainly supports the notification LED, if the hardware doesn't support it then it just ignores what the program tries to tell it about the led.
See this: http://developer.android.com/reference/android/app/Notification.html#ledARGB

Light flow works with the Atrix and allows you to assign different colors to specific apps:
https://market.android.com/developer?pub=Rage+Consulting+Limited

andy2na said:
Light flow works with the Atrix and allows you to assign different colors to specific apps:
https://market.android.com/developer?pub=Rage+Consulting+Limited
Click to expand...
Click to collapse
I would agree with that! I'm the author.
Yes the android sdk does support the notification color as s3gfault points out.
Motorola phones are one of the very few that actually implement the standard android notification method. It's all the other manufactureres that make general support difficult.

andrewpmoore said:
I would agree with that! I'm the author.
Yes the android sdk does support the notification color as s3gfault points out.
Motorola phones are one of the very few that actually implement the standard android notification method. It's all the other manufactureres that make general support difficult.
Click to expand...
Click to collapse
Very good app. Thank you!

Ronaldo_9 said:
Very good app. Thank you!
Click to expand...
Click to collapse
I agree.
I bought the full version and I am really happy with it.
No problems at all.

i think you all should try LEDme know.
it what we use on our HD2's
LED me know
sorry, jsut stopped by as im more than certainly getting a Atrix. so im reading up before i asked stupid questions lol

sal2708 said:
i think you all should try LEDme know.
it what we use on our HD2's
LED me know
sorry, jsut stopped by as im more than certainly getting a Atrix. so im reading up before i asked stupid questions lol
Click to expand...
Click to collapse
last time i tried that it didnt actually work, only worked when you hit test.
regarding LED flow, is there a way to keep stock colour on apps and only change gmail?
reason is whatsapp has a nice light blue but colour option is led flow is different and there are loads of apps i dont have installed that are supported but would want allow system colour and not blue. ...if any of that made sense

This app does NOT work correctly on ATRIX it has problems with the LED, also, it cannot show a charging LED for the battery, it just fails. I have tried all I can find and guess what? none do what I want. If the battery is charging, it should be solid red, if its charged solid green, turn off when screen is ON unless its still plugged in. Also, low battery warning notification with sound you choose, when I did this the notification went off when the battery was fully charged and there was NO LED lit. I don't understand.

Related

LED Flashlight,

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.
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).
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?
Click to expand...
Click to collapse
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
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!
This function is built into the Quick Settings app you can get for free in the market isn't it?
bakedecake said:
This function is built into the Quick Settings app you can get for free in the market isn't it?
Click to expand...
Click to collapse
Its currently not supported. Just tried it.
Yeah, that option just enables a bright white screen for now.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
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
Damunix said:
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
Click to expand...
Click to collapse
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.
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
Great news!
I think, that an application would be enough, since it isn't an often used feature (But VERY usefull when needed )
Looking forward to this!
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
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.
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.
NICE !!! work fine. but ON is not as bright as Flash is ... do something with it, please...
really good, thank you for your work
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.
Possibly the most useful app out there... if only on was full power!!
Nice one though!!
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

A Great Idea!!!

Im pretty sure we all agree that the EVO has sub-par notifications. It doesn't have alternative colors for the LED and when plugged in you get absolutely no notification, unless you use that app that I forgot the name of...
But anyways I was wondering if it would be possible to use the capacitive buttons as a Notification source.
Maybe we could have the home button blink for sms
the menu for calls, return for emails, etc. I don't know much about software development and all that crud, but I was just reading this idea on another phones forum and I figured it would be something extremely worthwhile for evo users, and in all honesty, its a pretty dam brilliant idea if we could just get it to work.
don't bash me if its not even possible. I was just simply trying to help my fellow EVO users by sharing a creative thought.
in the theme and app section there is apk that does this already well it flashes all of them for notifications
jrdejavux said:
in the theme and app section there is apk that does this already well it flashes all of them for notifications
Click to expand...
Click to collapse
i tried looking for it and i dont see one. there is however a thread requesting a port of the moment for one...maybe im blind??? i could very well be...
i also just went through 6 pages..
anyone got the name/link?
thanks..
i coulda pulled the whole... WFFF deal.. but..
i want this too? hah
Thanks people
-
jr - awesome thanks. in my defense, i didnt do a search.. i just felt id take a stroll through that section and didnt find it, cheers
found it in 2 seconds
http://forum.xda-developers.com/showthread.php?t=697430&highlight=notification+light
look at post number 8 for the apk
That app was for the Samsung Moment, it doesnt work on the EVO.....
You know this idea isn't half bad and it may be possible through a combination of the kernel and an application. For reference there is a hack someone made for the G1 that allows you to use the leds under the buttons for notification of the sd card. Here's the link:
http://forum.xda-developers.com/showthread.php?t=685947
That said, maybe we could use this idea to help us with this hack.
i would be more than happy to donate if someone could get this working. missing this feature from my pre
danon.brown said:
i would be more than happy to donate if someone could get this working. missing this feature from my pre
Click to expand...
Click to collapse
Would be awesome.
How are blinking buttons better than a blinking LED?
I think more convenient than flashing the capacitive buttons (which would probably use more battery too) is just flashing the LED for more than 5 minutes (indefinitely), and also flashing the LED even during charging, as I mentioned in this thread forum.xda-developers.com/showthread.php?t=712803.
r546 said:
I think more convenient than flashing the capacitive buttons (which would probably use more battery too) is just flashing the LED for more than 5 minutes (indefinitely), and also flashing the LED even during charging, as I mentioned in this thread forum.xda-developers.com/showthread.php?t=712803.
Click to expand...
Click to collapse
the buttons wouldn't have to flash continuously. It could be just for a few seconds and we can set up reminders like every 5 or 10 mins, that way hardly any battery life is consumed..

Notification LED

I'm noticing that the LED flashes only some of the time for things like Twitter and SMS. The notification bar has the update on it but the LED seems to not want to play ball.
Has anyone else experienced this or similar? I know the LED works because it shows when charging and when the battery was low it flashed. Specifically I use Touiteur and had the LED set to blue but even on the standard green it's hit and miss.
Sent from my Desire HD using XDA App
Mine doesn't flash when I get email, but seems to work for SMS or missed calls.
I was hoping someone would make a thread about this, I never got around to making one!
Mine flashes for everything which is annoying!!! I get a lot of emails so is constantly flashing! I've tried going into Settings -> Display -> Notifications and deselecting everything except Missed Calls and SMS/MMS but made no difference!
i'm so used to Magic 8 colors... shame DHD has only orange and green
also it somehow tends to turn it off after a while being on.
I've sent an email to HTC to ask about it since it's a big issue to me. Notification sounds feel similarly hit and miss so I'm suspecting some trigger is being missed, possibly due to the new Sense UI. I'll post any reply I get.
Sent from my Desire HD using XDA App
I've got two led's. One for the battery on the right of the speaker and one on the left behind the speaker. The left one is for notifications only n I must say I'm disappointed as its located being the speakers its not as visible as I would like it to be. Is there anyway to get the battery led to function as a notification led as its not covered so much more visible?
I've got a reply but nothing helpful. So far it seems they're willing to blame app compatibility. I've asked for information regarding any changes that have been made to the LED notification system on the Desire HD and now I wait for another reply.
I told them I had no such issues on two other Android phones and they seem to be implying that the apps are coded for specific phones when we all know apps are coded for an SDK version. To quote the part of the reply...
"All the functions/programs you mean are made for Nexus and G1/Dream most of the times, Desire and some other are similar enough for it to work. Cannot help you with third party software."
Pretty clear the guy doesn't have a clue about this so I'm hoping if I nag long enough he'll pass me on to someone with more knowledge.
Sent from my Desire HD using XDA App
lefty83 said:
I've got two led's. One for the battery on the right of the speaker and one on the left behind the speaker. The left one is for notifications only n I must say I'm disappointed as its located being the speakers its not as visible as I would like it to be. Is there anyway to get the battery led to function as a notification led as its not covered so much more visible?
Click to expand...
Click to collapse
I see two LEDs up top but charging uses the same LED as the notification system. The left one behind the grill. I haven't seen the second one light so it's probably the proximity sensor.
Sent from my Desire HD using XDA App
i only see one led too (with two colors).
Dyonas tel HTC that even GMail (2.2 app) acts like that... and gmail.apk 2.2 aint made for g1!
Another really pointless reply from them.. in the initial contact I mentioned the camera being misaligned so that's what the first part is referring to. Here's the latest reply and below it is how I have just responded.
Dear <me>,
Since receiving your e-mail i have looked for any more known cases and was unsuccessful if you are concerned that this may cause issues i recommend that you take the device back to the retailer.
Regarding the LED,
We do not give developer support so i cannot help you with this.
To send a reply to this message or let me know I have successfully answered your question log in to our ContactUs site using your email address and your ticket number <not important>.
Sincerely,
Adrian
Click to expand...
Click to collapse
Response to it from me..
Hi,
With regards to the LED notifications, I'm not asking for developer support or any support in fact. I'm simply trying to find out if HTC have changed the method for using them with the Desire HD. You said that programs are coded for specific phones and I'm sorry but that's not true. They are made for SDK versions, most going as far back as Android 1.6 for widest compatibility, so any changes in the programs affecting the LED notifications would show in ALL versions, not just the version shipping with the Desire HD.
This again points to either HTC changing something with the Desire HD or a programming bug with the Sense UI in some way. I realise this isn't an easy issue to look into but it is a very important one and while I appreciate you're trying your best, I will not let this issue drop until I get a more satisfactory answer.
Click to expand...
Click to collapse
To me this is a very big deal because if you leave the phone for a few minutes and aren't close enough to hear an audio notification the LED is what I rely on. Missing notifications like this I might expect from a custom ROM but I haven't touched the phone in any way like that. I didn't see your reply in time to mention the GMail issue and I only have my experience to go on which is Twitter updates not always firing. You should raise a ticked too, the more we get raising the issue the better the chance they'll look into it.
i stop sending tickets to HTC last year... they never fix anything.
I rather find a perm root and put CM onto it!
Their latest and seemingly final reply seems to have something that may point to an answer. Unfortunately I lack the knowledge to check if it is of any use. The guy suggested any changes would be in the Kernel and linked me to the source code area. Is anyone able to look into the source code and see if there are changes to the notification LED system for the DHD? It's pointless not useful to ask app developers to look into it until we have something concrete to point at as a cause.
Dyonas said:
Their latest and seemingly final reply seems to have something that may point to an answer. Unfortunately I lack the knowledge to check if it is of any use. The guy suggested any changes would be in the Kernel and linked me to the source code area. Is anyone able to look into the source code and see if there are changes to the notification LED system for the DHD? It's pointless not useful to ask app developers to look into it until we have something concrete to point at as a cause.
Click to expand...
Click to collapse
can you leave the code sample, please?
thanks
The source code? It's available on http://developer.htc.com to download.
Sent from my Desire HD using XDA App
I asked Cyanogen about this and he thinks the lights driver he wrote for the G2 may work.
Being a basic user I have no idea how to try that out without instructions so... I've done the fact finding, who's going to help with this part?
My email LED notification has not been working properly, sometimes yes but mostly no.
Got email mid morning today, sound and LED worked. Left it in this state for several hours still okay. Just got another sound notification for the same previous email, how does that work
Think this is yet another bug....
I've now had this happen with the GMAIL app so I'm bugging them some more.
Would there be any point in posting in the development section to ask for help using the G2 lights driver from Cyanogen?
Sent from my Desire HD using XDA App
I've also had GMail fail on LED notification and SMS! It seems to be random now. Coming from a WM6.5 defector I quietly smile to myself
I think I figured it out and if im right it's really stupid. I had two notifications earlier, one for Twitter and the other for e-mail (not gmail). The LED wasn't flashing for either. I opened Touiteur to view the updates thete which cleared that notification and straight away the LED began flashing for the e-mail alert.
Why one notification would disable the LED if it's already on I have no idea but the above has happened more than once now. There's an LED test on the phone which HTC had me test. It has other tests too for anyone curious.
Key this into the dialer.
*#*#DIAG#*#*
Sent from my Desire HD using XDA App
Where can i find the test for the LED? Mine doesnt seem to flash for any alerts.

[Q] idea to get rid of green pics

ok i just though of this....ok so its obvious that the drivers for the flash are no good and are late and thus gives us green tint on pics....how about if someone were to make an app were we can keep the led light on and keeps on in background and then that way we can jump into shcamera....i thought of this because i know theres an app on android that the led light stays on untl u turn it of urself.......so if anyone thinks this might work and know who are whilling to make an app like this let me know
cobrien13 said:
ok i just though of this....ok so its obvious that the drivers for the flash are no good and are late and thus gives us green tint on pics....how about if someone were to make an app were we can keep the led light on and keeps on in background and then that way we can jump into shcamera....i thought of this because i know theres an app on android that the led light stays on untl u turn it of urself.......so if anyone thinks this might work and know who are whilling to make an app like this let me know
Click to expand...
Click to collapse
The application already exist, called Flashlight but for switch you should have to try dehydrate hack. Don't know if it can work
Edit: http://www.daveamenta.com/2011-01/led-flashlight-for-windows-phone-7/
cobrien13 said:
ok i just though of this....ok so its obvious that the drivers for the flash are no good and are late and thus gives us green tint on pics....how about if someone were to make an app were we can keep the led light on and keeps on in background and then that way we can jump into shcamera....i thought of this because i know theres an app on android that the led light stays on untl u turn it of urself.......so if anyone thinks this might work and know who are whilling to make an app like this let me know
Click to expand...
Click to collapse
Dude, You shouldn't be posting any topics in here. This forum is for developers to post development work and reference not for general discussions/questions etc, that's why we have a General and Q&A forum.

Blinking Hardware Buttons

Hey together,
i know that many people asked similary questions about that topic, but it is not exactly my question. I don't like the small notification LED in my DHD so I wonder if it would be possible to let the hardware buttons blink when I receive a message oder mail for example. Not just lighten up - blinking. The generell answer is that a kernel is needed which supports BTN blinking. Long time ago i got Android Revolution HD from mike on my DHD, but don't remember the version. With the app "L.E.D. me know" it was possible to let them blink, but on current ROM's like IceColdSandwhich or newer versions of Android Revolution HD it isn't. Some one know how to get them to blink again and if it is really necessary to change the kernel, which one do I need?
Greetings
If I understood correctly, look for BLN in icecold. It should be somewhere in settings or rom control.
Sent from a dream.
Hey nemo there is an app called lightflow that does what you are looking for
Sent from my HTC One S using xda app-developers app
@Teichopsia:
Not specifically in icecold.The feature in IceCold only allows to let the hardware buttons lighten up and not let them blink. That's not what im looking for
@ Roundtableprez:
Thanks for the hint, but doesn't work for me.
1) Buttons don't blink, just lighten up and keep solid.
2) Cant turn on display again -> have to reboot phone by removing battery.
Any other ideas?

Categories

Resources