cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to detect / get a callback when headphones are connected / disconnected

viteichris
Protege
As per the title: Is it possible to detect / get a callback when headphones are connected / disconnected?

Best thing I've found so far is to build a tiny android lib myself, but if there's a native Oculus API to do this that would keep things tidier.
1 REPLY 1

Halfspacer
Adventurer
The Android AudioManager (android.media.AudioManager) has a broadcast action called ACTION_HEADSET_PLUG for detecting when a wired headset is connected/disconnected.