Android KitKat Bluetooth ACL_CONNECTED and ACL_DISCONNECTED not working -


i have weird issue, broadcast receiver not receiving acl_connected , acl_disconnected on android 4.4.2.

but have android phone 4.1.2 , works correctly.

is known issue?

here androidmanifest :

       <receiver android:name="com.example.myclass$bluetoothbroadcastreceiver"              android:enabled="true"             android:exported="false">             <intent-filter>                 <action android:name="android.bluetooth.device.action.acl_connected" />                 <action android:name="android.bluetooth.device.action.acl_disconnected" />                 <action android:name="android.bluetooth.adapter.action.state_changed"/>             </intent-filter>         </receiver>  

i have found issue.

i removed android:enabled="true" , android:exported="false" , works on both 4.4.2 , 4.1.2


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -