简体   繁体   English

我需要将Android带有蓝牙耳机的语音搜索应用添加到“使用中完成操作”

[英]I need to add my Voice Search app to “Complete action using” in Android with Bluetooth headset

I would like to see my app in the "complete action using" list when i press the call button on my bluetooth headset. 当我按下蓝牙耳机上的通话按钮时,我希望在“使用完成操作”列表中看到我的应用程序。 Currently, i am only seeing "Google" and "SVoice app" as two options. 目前,我只看到“ Google”和“ SVoice app”作为两个选项。

My AndroidManifest.xml 我的AndroidManifest.xml

<activity android:name=".MainActivity"
    android:windowSoftInputMode="stateHidden|adjustResize">
    <intent-filter>
       <action android:name="android.intent.action.MAIN" />
       <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>

    <intent-filter>
         <action         android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
         <category android:name="android.intent.category.DEFAULT"/>
         <category android:name="android.intent.category.VOICE"/>
    </intent-filter>

    <intent-filter>
       <action   
android:name="android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED" />
      <category android:name="android.intent.category.DEFAULT" />
      <category android:name="android.intent.category.BROWSABLE" />
       </intent-filter>
 </activity>

I don't see my app in the "complete action using" list. 我在“使用完整操作”列表中看不到我的应用。

You have to use the below intent for that. 您必须使用以下意图。

Voice search intent 语音搜索意图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我需要将我的语音搜索应用程序添加到 Android 中的“使用完成操作” - I need to add my Voice Search app to “Complete action using” in Android 在Android上处理蓝牙耳机点击(ACTION_VOICE_COMMAND和ACTION_WEB_SEARCH) - Handle bluetooth headset clicks (ACTION_VOICE_COMMAND and ACTION_WEB_SEARCH) on Android Android:断开蓝牙耳机以使用蓝牙连接我的SPP应用程序 - Android: Disconnect bluetooth headset to connect my SPP app using bluetooth 在语音聊天应用程序中将蓝牙耳机用作麦克风和扬声器 - Using a Bluetooth Headset as a Mic and Speaker in a Voice Chat App 将 Android RecognizerIntent 与蓝牙耳机配合使用 - Using the Android RecognizerIntent with a bluetooth headset 如何将我的安卓手机用作蓝牙耳机? - How am I able to use my android phone as bluetooth headset? 是否可以录制来自蓝牙耳机的声音并同时在Android扬声器上播放? - Is it possible to record the voice from Bluetooth headset and play on Android speaker simultaneously? 从安卓应用程序以编程方式连接到蓝牙耳机 - Programmatically connect to bluetooth headset from android app “使用完整操作”发送未在Android中显示我的应用的短信 - “Complete action using” to send SMS not showing my app in android 一个Android应用程序如何检测没有蓝牙权限的蓝牙耳机? - How can an android app detect a bluetooth headset without bluetooth permissions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM