How can i detect whether headset is connected or not.. to phone