Skip to content

android: add a simple state log file#357

Open
teleshoes wants to merge 4 commits intobuggins:masterfrom
teleshoes:cr_state_log_file
Open

android: add a simple state log file#357
teleshoes wants to merge 4 commits intobuggins:masterfrom
teleshoes:cr_state_log_file

Conversation

@teleshoes
Copy link

writes a single line at startup, shutdown, tts start, and tts stop. it currently writes to the coolreader app dir, but could write to external storage for interfacing with other apps.

i use this to control coolreader TTS audio using the volume up/down buttons while my phone is locked. (if coolreader is running and in TTS mode, play/pause coolreader. otherwise, play/pause my media player).

i have previously used a combination of querying the android media layer, pgrep to see if tts is running, and logcat, which worked a little less reliably and a lot less efficiently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant