コード例 #1
0
  public String getServiceName() {

    if (mName != null) return mName;

    IBluetooth service = BluetoothDevice.getService();
    try {
      return service.getGattServiceName(mObjPath);
    } catch (RemoteException e) {
      Log.e(TAG, "", e);
    }

    return null;
  }