示例#1
0
 /** {@inheritDoc} */
 public List<BluetoothDevice> getConnectedDevices() {
   if (DBG) log("getConnectedDevices()");
   if (mService != null && isEnabled()) {
     try {
       return mService.getConnectedDevices();
     } catch (RemoteException e) {
       Log.e(TAG, "Stack:" + Log.getStackTraceString(new Throwable()));
       return new ArrayList<BluetoothDevice>();
     }
   }
   if (mService == null) Log.w(TAG, "Proxy not attached to service");
   return new ArrayList<BluetoothDevice>();
 }