我想加入Android Wear语音功能,并按照以下网址语音功能的穿戴
https://developer.android.com/training/wearables/apps/voice.html
这里是我的清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demowearapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-feature android:name="android.hardware.type.watch" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-sdk
android:minSdkVersion="20"
android:targetSdkVersion="20" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".TaxiActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.google.android.gms.actions.RESERVE_TAXI_RESERVATION" />
</intent-filter>
</activity>
</application>
</manifest>
但是,当我试图下面的语音命令在我的LG G手表它不会打开我的活动......它只是显示谷歌搜索结果
“OK谷歌,给我拿个税我”
“OK谷歌,叫我车”
感谢。
我已经卸下的类别默认,也是我对GMS版本的元数据:https://developer.android.com/google/play-services/setup.html(使用播放服务耐磨的依赖) – jush 2014-09-23 07:21:06
@jush你的解决方案不起作用。我想知道为什么穿应用程序需要谷歌播放服务的语音功能。 – 2014-09-23 11:06:07