diff options
author | Mike LeBeau <mlebeau@android.com> | 2010-02-11 15:01:27 -0800 |
---|---|---|
committer | Mike LeBeau <mlebeau@android.com> | 2010-02-11 15:01:27 -0800 |
commit | cb0be8a530d6fefdb05f009980c029c4da14bf98 (patch) | |
tree | 47ced4a365121574672e7fee442b69f097720f28 /packages | |
parent | 378ae126d9d61feed77ad596fa0823394eac6240 (diff) | |
download | frameworks_base-cb0be8a530d6fefdb05f009980c029c4da14bf98.zip frameworks_base-cb0be8a530d6fefdb05f009980c029c4da14bf98.tar.gz frameworks_base-cb0be8a530d6fefdb05f009980c029c4da14bf98.tar.bz2 |
Use the new RecognitionService.SERVICE_INTERFACE instead of
RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice
recognition service.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 4e1e0a2..b26607f 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -38,6 +38,7 @@ import android.net.ConnectivityManager; import android.os.Environment; import android.os.SystemProperties; import android.provider.Settings; +import android.speech.RecognitionService; import android.speech.RecognizerIntent; import android.text.TextUtils; import android.util.Config; @@ -996,7 +997,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { String selectedService = null; List<ResolveInfo> availableRecognitionServices = mContext.getPackageManager().queryIntentServices( - new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); + new Intent(RecognitionService.SERVICE_INTERFACE), 0); int numAvailable = availableRecognitionServices.size(); if (numAvailable == 0) { |