'Is it possible to trigger an action by voice from the locked android phone?

We don't necessarily want to open the app. Being able to execute a piece of code (a REST request) would suffice. Thank you

I searched on the internet but I couldn't find anything ...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source