Author Topic: GeminiLED notification app  (Read 9716 times)

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« on: June 30, 2018, 11:44:42 am »
As discussed in other threads I've been working on a notification app to use the 5 LED on the Gemini.  I have called this app GeminiLED and a version now available for people to try if they wish.  

This first version will light each of the 5 centre LED for notifications colours as follows from left to right:

Viber - magenta
WhatsApp - green
K9 Mail - red
Handcent Next SMS - blue
Dialer (call and missed call) - cyan

NOTE: This app needs access to notifications to work. Select Settings, Apps, Settings (gear wheel), Special access, Notification access slider on for GeminiLED

Due to the (sensible) way Android goes in to a 'doze' mode when the screen is off, I have not been able to implement reliable flashing.  If Planet release develop tools as they have said they are going to then there may be some methods available that I am currently unaware of which will allow me to revisit that. I've done some rudimentary testing and having the LEDs lit continuously does not seem to have any discernible affect on battery life.

The app to LED configuration is hard coded in this version.  User configuration of what LED responds to what app and in what colour is now under development.

The apk is available here

GitHub here

Feedback welcome but please go easy on me, this is the first time I have ever tried to release any of my projects in to the wild!  Hope it works for you.
« Last Edit: June 30, 2018, 01:14:48 pm by graynada »

Eeems

  • Newbie
  • *
  • Posts: 11
    • View Profile
GeminiLED notification app
« Reply #1 on: June 30, 2018, 12:24:37 pm »
This is quite interesting and I'm excited for when you add user configuration.

Am I correct in assuming that app/src/main/java/harby/graham/geminiled/GeminiLED.java is the file I'd have to modify if I wanted to customize the applications it listens for and what colour to use?

BTW, I'd recommend not embedding the APK in your git source and instead uploading it as a file on a release tag. git doesn't really like handling binary files.
« Last Edit: June 30, 2018, 12:25:47 pm by Eeems »

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #2 on: June 30, 2018, 12:32:55 pm »
Quote from: Eeems
This is quite interesting and I'm excited for when you add user configuration.

Am I correct in assuming that app/src/main/java/harby/graham/geminiled/GeminiLED.java is the file I'd have to modify if I wanted to customize the applications it listens for and what colour to use?

BTW, I'd recommend not embedding the APK in your git source and instead uploading it as a file on a release tag. git doesn't really like handling binary files.

Yes that is the file to modify, you just need to know part of the package name.

I am completely new to GitHub so apologies. I'm trying to find my way around where stuff is.  I shall look to move, where would I upload the file other than where I have?

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #3 on: June 30, 2018, 01:15:43 pm »
Quote from: Eeems
BTW, I'd recommend not embedding the APK in your git source and instead uploading it as a file on a release tag. git doesn't really like handling binary files.

Found it, thanks for the tip

joepirello

  • Newbie
  • *
  • Posts: 41
    • View Profile
GeminiLED notification app
« Reply #4 on: July 02, 2018, 02:38:26 am »
I don't compile my own APKs, but if I provided the path to the file name (I'm guessing you would need the com.whatever.whatever), do you think one of you could throw together an apk for me real quick? I would GREATLY appreciate it.

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #5 on: July 02, 2018, 02:58:00 am »
Quote from: joepirello
I don't compile my own APKs, but if I provided the path to the file name (I'm guessing you would need the com.whatever.whatever), do you think one of you could throw together an apk for me real quick? I would GREATLY appreciate it.

Yes I could do that later for you.  If you PM me the package name, a colour preference from the 7 available, which current one you want to replace and your email address I'll do it later for you.

joepirello

  • Newbie
  • *
  • Posts: 41
    • View Profile
GeminiLED notification app
« Reply #6 on: July 02, 2018, 02:20:21 pm »
Quote from: graynada
Quote from: joepirello
I don't compile my own APKs, but if I provided the path to the file name (I'm guessing you would need the com.whatever.whatever), do you think one of you could throw together an apk for me real quick? I would GREATLY appreciate it.

Yes I could do that later for you.  If you PM me the package name, a colour preference from the 7 available, which current one you want to replace and your email address I'll do it later for you.

You are an absolute legend. Thank you man, I'll message you in a bit.

gemini_user

  • Newbie
  • *
  • Posts: 8
    • View Profile
GeminiLED notification app
« Reply #7 on: July 02, 2018, 05:10:08 pm »
Quote from: graynada
As discussed in other threads I've been working on a notification app to use the 5 LED on the Gemini.  I have called this app GeminiLED and a version now available for people to try if they wish.  
...
Just wanted to say thanks for your work and sharing

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #8 on: July 03, 2018, 01:02:56 am »
Thank you for the support.

Thought I'd share a preview of the GUI I'm working on.  It's supposed to look like the top case of the Gemini but I'm struggling to get the colour right.  If anyone has a better RGB set for that very nice colour I'd be glad to try it.

jakfish

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
GeminiLED notification app
« Reply #9 on: July 03, 2018, 01:52:47 pm »
I think it looks great. Very exciting stuff and thank you so much for all your time.

Jake

gemini_user

  • Newbie
  • *
  • Posts: 8
    • View Profile
GeminiLED notification app
« Reply #10 on: July 06, 2018, 04:54:59 am »
OK, so while I was installing it asked me "do I want to trust this publisher" or something like that, and due to an involuntary muscle spasm I clicked 'no' so it didn't install.

But now when I try again to install it, it just simply refuses saying 'app not installed'.  And I can't figure out how to reset my option for trusting the publisher.  

Anyone any ideas how to reset?

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #11 on: July 06, 2018, 10:30:43 am »
Quote from: gemini_user
OK, so while I was installing it asked me "do I want to trust this publisher" or something like that, and due to an involuntary muscle spasm I clicked 'no' so it didn't install.

But now when I try again to install it, it just simply refuses saying 'app not installed'.  And I can't figure out how to reset my option for trusting the publisher.  

Anyone any ideas how to reset?

Hi when did you download it? I put up a new version around lunchtime UK time so if it was before that try down loading the new one

Ifanafi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
GeminiLED notification app
« Reply #12 on: July 06, 2018, 10:43:26 am »
Very much appreciate all who are working to make the LED app all it can be.

Yesterday, the LED app became (again) dysfunctional. I guess it doesn't play well / integrate with my Gem's phone and/or messaging apps.

For days, until I uninstalled it, whenever a message arrive or the phone rang, the LED app generated a popup saying it "stopped" and to either close it or open it again.
The latter option failed to clear the error's cause as that popup reappeared again and again.

I shall wait on the app being significantly improved and ready-for-prime time use as a unique feature of the Gemini PDA.

Until then, frankly speaking, the LEDs are certainly a nice-to-have feature and not an essential must-have like beeps for messages and ringtones for calls.

Cheers.

IFanafi

graynada

  • Full Member
  • ***
  • Posts: 117
    • View Profile
GeminiLED notification app
« Reply #13 on: July 06, 2018, 03:18:42 pm »
Quote from: Ifanafi
Very much appreciate all who are working to make the LED app all it can be.

Yesterday, the LED app became (again) dysfunctional. I guess it doesn't play well / integrate with my Gem's phone and/or messaging apps.

For days, until I uninstalled it, whenever a message arrive or the phone rang, the LED app generated a popup saying it "stopped" and to either close it or open it again.
The latter option failed to clear the error's cause as that popup reappeared again and again.

I shall wait on the app being significantly improved and ready-for-prime time use as a unique feature of the Gemini PDA.

Until then, frankly speaking, the LEDs are certainly a nice-to-have feature and not an essential must-have like beeps for messages and ringtones for calls.

Cheers.

IFanafi

Hi IFanafi

I have release a final beta today at the link below that should be much more stable and play nicely with whichever software you chose to allocate to the LEDs through it. I would value your experience trying it out if you could.

https://github.com/graynada/GeminiLED/releases/tag/v2.1Beta

Thanks

jakfish

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
GeminiLED notification app
« Reply #14 on: July 06, 2018, 03:33:28 pm »
Having tested several versions of this fine work, I would suggest--to prevent any holdover bugs--uninstalling the previous version, rather than installing new version on top of the old.

Jake