I'm developing an android app and I need to know when Bluetooth is connected with a wearable device. I tried to use a method with a Bluetooth adapter, but without good results. How can I program this method?
public static boolean btConnected() {
if( /*Bluetooth is connected*/ )
return true;
else
return false;
}