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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -