Although if you want to just detect if the gear is connected, the easier way to do it is to check the bluetooth status... State -> Net -> Bluetooth status.. I like to use the MAC address as the identifier.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?