• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help K-9 No Longer Flashes LED

Riverman

Well-Known Member
I just upgraded to the latest version of K-9, which has an all new color picker, but now the LED won't flash when I get a new email and the screen is off. The "Flash LED" option in settings is checked, and I've tried several different colors, but none will work. Has anyone else experienced this problem and found a fix?
 
The solution seems to be to download an older version of K-9 that uses the old color picker (I used 3.0), pick the LED color, and then upgrade it through the Market so your settings stay intact. If you start from scratch with a new version, the LED won't work.
 
System: K-9 Mail v3.404 / Liberty v1.0 / Droid X

Sorry in advance for any confusion! This worked for me! It shouldn't be this hard! :)

My LED wasn't flashing at all for new mail for either of the two accounts I set up in K-9.

I don't think I had the problem before moving to Liberty.

I reinstalled K-9 from the Market, and suddenly LED notification was working for *one* of the accounts.

Well, the colors were different on the Color Picker Palette, so I decided to try and get the *same* color on the non-working account as on the working account.

Two options: Either use the Color Picker in K-9 to approximate the "right" color by touch, or modify the preferences database.

Here's how I did the second choice:

1) Using Root Explorer (or some such) check out the the database /data/data/com.fsck.k9/databases/preferences_storage
2) Make note of the key pair like 'YOUR_ACCOUNT_SPEC.ledColor' = 'YOUR_LED_COLOR_SPEC'
For me, these were crazy values like YOUR_ACCOUNT_SPEC = 'cfbe1c53-322f-41db-bc96-2cd83bbb838a' and YOUR_LED_COLOR_SPEC = '-15043477'
3) Using your PC:

Code:
$ adb pull /data/data/com.fsck.k9/databases/preferences_storage
$ cp preferences_storage preferences_storage.backup # In case I do bad things!
$ sqlite3 preferences_storage "update preferences_storage set value='-15043477' where primkey='cfbe1c53-322f-41db-bc96-2cd83bbb838a.ledColor'"
$ adb push preferences_storage /data/data/com.fsck.k9/databases/preferences_storage

That worked! I suspect that, on some level, certain color specs are not understood, and result not in a default color, but non-blinking-ness. What colors work and which don't? This could be determined, but I'm not about to send myself thousands of test emails. :)

I see at least two problems here: (1) There should be a default behavior for the LED. (2) The K-9 Color Picker needs to have some more flexibility, like a "safe" palette, or some fields for precise color specs with RGB or something. Come on Android world, come on.

Hope this helps.
 
Back
Top Bottom