From c03c9167c2d9a1e22fb2b176b00a0524177fb037 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 2 May 2014 10:45:59 -0700 Subject: Further work on voice interaction services. This makes VoiceInteractionSession a more first-class concept. Now the flow is that a VoiceInteractionService calls startSession() when it wants to begin a session. This will result in a new VoiceInteractionSession via the VoiceInteractionSessionService containing it, and the session at that point an decide what to do. It can now show UI, and it is what has access to the startVoiceActivity API. Change-Id: Ie2b85b3020ef1206d3f44b335b128d064e8f9935 --- .../res/layout/voice_interaction_session.xml | 38 +++++++++++++ .../voiceinteraction/MainInteractionService.java | 5 +- .../voiceinteraction/MainInteractionSession.java | 63 +++++++++++++++++++--- .../MainInteractionSessionService.java | 2 +- 4 files changed, 99 insertions(+), 9 deletions(-) create mode 100644 tests/VoiceInteraction/res/layout/voice_interaction_session.xml (limited to 'tests') diff --git a/tests/VoiceInteraction/res/layout/voice_interaction_session.xml b/tests/VoiceInteraction/res/layout/voice_interaction_session.xml new file mode 100644 index 0000000..9fcbf3e --- /dev/null +++ b/tests/VoiceInteraction/res/layout/voice_interaction_session.xml @@ -0,0 +1,38 @@ + + + + + + + +