Android catch Bluetooth HFP's Activate Voice Recognition

别来无恙 提交于 2019-12-06 03:40:49

To receive AT+BVRA on Android, you need to grab the VOICE_COMMAND intent. This is what you need in your AndroidManifest.xml

<intent-filter>
    <action android:name="android.intent.action.VOICE_COMMAND"/>
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

On Samsung phones, the priority for S-Voice is set high (10, if I recall correctly). This means that no application will get this intent. You need to disable S-Voice: (Instructions on how to disable apps) to receive the intent.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!