【发布时间】:2017-03-16 13:39:54
【问题描述】:
当用户按下电源按钮锁定屏幕时,我想继续我的 Android SpeechRecognizer Intent。
public abstract class ListeningActivity {
protected SpeechRecognizer sr;
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
sr.startListening(intent);
但目前,当锁定显示器时,该过程会停止。如何正确继续 SpeechRecognizer?
【问题讨论】:
标签: android speech-recognition android-wake-lock recognizer-intent