我一直在尝试启动我的应用程序的主要活动,使用谷歌now...Can语音搜索它任何人帮助我的代码
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="My Voice Activated App" >
</searchable>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.authorwjf.myvoiceactivatedapp" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.authorwjf.myvoiceactivatedapp.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>我写了这段代码来使用命令搜索我的应用程序-“not .....打开我的语音激活的应用程序”,但这不起作用
发布于 2015-03-14 14:49:35
说出存储在@string/app_name中的应用程序名称。您的应用程序将反映在搜索结果中(手机)
https://stackoverflow.com/questions/29045850
复制相似问题