diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-06-08 17:07:40 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-06-09 14:15:49 -0700 |
commit | a3acdb33df7c7be7ff3d9f376ff833e4b0c1d897 (patch) | |
tree | 452c3cd2b7a2706fcbdcd1432e820c71e31b13bb /tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java | |
parent | ea7438e4a698945b3e3a7786cff726c337291a68 (diff) | |
download | frameworks_base-a3acdb33df7c7be7ff3d9f376ff833e4b0c1d897.zip frameworks_base-a3acdb33df7c7be7ff3d9f376ff833e4b0c1d897.tar.gz frameworks_base-a3acdb33df7c7be7ff3d9f376ff833e4b0c1d897.tar.bz2 |
Fix issue #21621920: VI: need mechanism to get current request
Add new APIs to associate a Request with a name, get all active
requests, and get active request by name.
Also add a new Activity.onProvideReferrer() which will allow
applications to propagate referrer information to the assistant
(and other apps they launch) in a consistent way.
Change-Id: I4ef74b5ed07447da9303a74a1bdf42e4966df363
Diffstat (limited to 'tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java')
-rw-r--r-- | tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java index 5d212a4..a7636c3 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/VoiceInteractionMain.java @@ -18,6 +18,7 @@ package com.android.test.voiceinteraction; import android.app.Activity; import android.content.Intent; +import android.net.Uri; import android.os.Bundle; import android.view.View; @@ -41,6 +42,11 @@ public class VoiceInteractionMain extends Activity { super.onDestroy(); } + @Override + public Uri onProvideReferrer() { + return Uri.parse("http://www.example.com/VoiceInteractionMain"); + } + View.OnClickListener mStartListener = new View.OnClickListener() { public void onClick(View v) { startService(new Intent(VoiceInteractionMain.this, MainInteractionService.class)); |