当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
不?