And many Android apps provide ways for you to send an intent to get them to start up and do what you want. Worst case you could just send an intent to Tasker, and get Tasker to do what you want
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think it might be - at least for some players. Gadgetbridge can now send 'intents': http://www.espruino.com/Gadgetbridge#intents
And many Android apps provide ways for you to send an intent to get them to start up and do what you want. Worst case you could just send an intent to Tasker, and get Tasker to do what you want