OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Pointless (but fun) app idea
Charlie Stross
post May 24 2018, 12:24 PM
Post #1





Group: Members
Posts: 36
Joined: 2-February 18
Member No.: 817,351



I suddenly realized that the Gemini has 5 lid LEDs. And of course the Google Voice button.

All I want now is a simple app that monitors the voice button and, when it's pressed (big clue: I have no use for the voice button -- I use mine as a PDA) flashes the LEDs to emulate a binary watch, displaying first the hour (in 24 hour format) and then, a second later, the minute past the hour. So that when my Gemini is closed I can use it as a very bulky, pointless, binary watch.

Anyone know if enough of the APIs are exposed to make this possible?
Go to the top of the page
 
+Quote Post
ali1234
post May 24 2018, 02:39 PM
Post #2





Group: Members
Posts: 19
Joined: 16-May 18
Member No.: 822,713



QUOTE(Charlie Stross @ May 24 2018, 09:24 PM) *
I suddenly realized that the Gemini has 5 lid LEDs. And of course the Google Voice button.

All I want now is a simple app that monitors the voice button and, when it's pressed (big clue: I have no use for the voice button -- I use mine as a PDA) flashes the LEDs to emulate a binary watch, displaying first the hour (in 24 hour format) and then, a second later, the minute past the hour. So that when my Gemini is closed I can use it as a very bulky, pointless, binary watch.

Anyone know if enough of the APIs are exposed to make this possible?


LED API: https://www.oesf.org/forum/index.php?showto...st&p=286028

I have not figured out how to take over the voice button yet.
Go to the top of the page
 
+Quote Post
ali1234
post May 25 2018, 07:57 AM
Post #3





Group: Members
Posts: 19
Joined: 16-May 18
Member No.: 822,713



QUOTE(ali1234 @ May 24 2018, 11:39 PM) *
I have not figured out how to take over the voice button yet.


It seems this is not possible because the voice button intent is generated by a patch to the core android framework. It is delivered directly to com.pripla.gemini.voiceassistant package by a hardcoded lookup. To override it, an app would need to have this package name. It would not be possible to install such an app on the stock firmware, because this app is already built in.

So changing the voice assistant button action isn't possible without rooting.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2019 - 12:01 AM