[英]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. 您必须使用以下意图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.