Erel, now i understand what you meant when you wrote that the recorded intent is executed even if the application is not active
Anyway, the first time you install the application and the first time runs, nothing will be recorded until connect or disconnect the bluetooth headset.
I ask at this point:
1. is there a way to force the disconnect and reconnect the Bluetooth headset?
2. there is a type "ACTION_ACL_CONNECTED" but only intercepts the type bluetooth headset and not all bluetooth devices?
3. when you run the intent (especially when the application is not active), how can i save the state of bluetooth headset? through the StateManager?
thanks