蓝牙a2dp连接状态更改事件未触发

时间:2016-01-01 18:29:14

标签: android

当a2dp设备连接/断开时我试图接收广播但是接收器没有被调用 - 这在今天早些时候确实有效,然后我改变了一些东西而且它已经不再工作了,我把它改回来了,它仍然无法工作:(

我的清单:

$table .= "</tr><tr class='tr'>";
foreach ($row as $r){
    $table .= "
        <td class='td'>Minimum Bid: <b>";
        $table .= $r['MinBid'];
        $table .= "</b></td>";
}

适配器状态更改确实有效

<uses-permission android:name="android.permission.BLUETOOTH" />

<receiver
    android:name=".CsoBtConnChanged"
    android:enabled="true"
    android:exported="false">
    <intent-filter>
        <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
        <action android:name="android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED" />
        <action android:name="android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED" />
    </intent-filter>
</receiver>

但是

android.bluetooth.adapter.action.STATE_CHANGED

android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED

不?

0 个答案:

没有答案