code: public static boolean isWatchConnected(final Context context) {
  		Cursor c = null;
  		try {
              c = queryProvider(context);
  			if (c == null || !c.moveToNext()) {
  				return false;
  			}
  			return c.getInt(KIT_STATE_COLUMN_CONNECTED) == 1;
  		} finally {
  			if (c != null) {
  				c.close();
  			}
  		}
      }
docs: Synchronously query the Pebble application to see if an active Bluetooth connection to a watch currently exists.
  
  @param context
  The Android context used to perform the query.
  
  <em>Protip:</em> You probably want to use your ApplicationContext here.
  
  @return true if an active connection to the watch currently exists, otherwise false. This method will also return
  false if the Pebble application is not installed on the user's handset.