首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我想从谷歌now....can启动我的应用程序任何人帮助我的代码

我想从谷歌now....can启动我的应用程序任何人帮助我的代码
EN

Stack Overflow用户
提问于 2015-03-14 13:39:20
回答 1查看 451关注 0票数 0

我一直在尝试启动我的应用程序的主要活动,使用谷歌now...Can语音搜索它任何人帮助我的代码

代码语言:javascript
复制
<?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 .....打开我的语音激活的应用程序”,但这不起作用

EN

回答 1

Stack Overflow用户

发布于 2015-03-14 14:49:35

说出存储在@string/app_name中的应用程序名称。您的应用程序将反映在搜索结果中(手机)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29045850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档