I want to use a voice command to unlock an Android phone.
I tried the sample voice recognition code from android, but how to integrate it to achieve this function?
I have some doubts
1), should I use the service for this function?
2) when the phone screen is locked, can it have access to the Internet? (because Google voice uses the internet)
3) I looked at the PowerManager class, but using which method can I trigger my activity in voice mode when I press the power button? (phone is in sleep mode, locked)
Any guidance or decision / feedback is welcome!
thanks
source share