Feature idea
Add an option globally and per-alarm to make them only ring when earphone connected. This is useful when in library where ringing is prohibited.
One alarm that has this is the proprietary Earphone alarm.
I think this can be implemented by logging android.bluetooth.BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED, android.bluetooth.BluetoothAdapter.ACTION_STATE_CHANGED, android.content.Intent.ACTION_HEADSET_PLUG, and context.getSystemService(android.content.Context.AUDIO_SERVICE).ACTION_AUDIO_BECOMING_NOISY. If BluetoothAdapter.STATE_CONNECTED is the latest one logged Bluetooth event then now it's Bluetooth connected, otherwise it's not. Similar for headset plug.
Checklist
Feature idea
Add an option globally and per-alarm to make them only ring when earphone connected. This is useful when in library where ringing is prohibited.
One alarm that has this is the proprietary Earphone alarm.
I think this can be implemented by logging
android.bluetooth.BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED,android.bluetooth.BluetoothAdapter.ACTION_STATE_CHANGED,android.content.Intent.ACTION_HEADSET_PLUG, andcontext.getSystemService(android.content.Context.AUDIO_SERVICE).ACTION_AUDIO_BECOMING_NOISY. IfBluetoothAdapter.STATE_CONNECTEDis the latest one logged Bluetooth event then now it's Bluetooth connected, otherwise it's not. Similar for headset plug.Checklist