code: public static boolean isDataLoggingSupported(final Context context) {
          Cursor c = null;
  		try {
              c = queryProvider(context);
  			if (c == null || !c.moveToNext()) {
  				return false;
  			}
  			return c.getInt(KIT_STATE_COLUMN_DATALOGGING_SUPPORT) == 1;
  		} finally {
  			if (c != null) {
  				c.close();
  			}
  		}
      }
docs: Synchronously query the Pebble application to see if the connected watch is running a firmware version that
  supports PebbleKit data logging.
  
  @param context
  The Android context used to perform the query.
  
  <em>Protip:</em> You probably want to use your ApplicationContext here.
  
  @return true if the watch supports PebbleKit messages, otherwise false. This method will always return false if
  no Pebble is currently connected to the handset.