2016-04-12 16 views

cevap

0

Eğer

public void getDeviceList(){ 
     BluetoothAdapter mBlurAdapter= BluetoothAdapter.getDefaultAdapter(); 
     Set<BluetoothDevice> pairedDevices = mBlurAdapter.getBondedDevices(); 
     if (pairedDevices.isEmpty()) { 
      Log.e("DeviceActivity ", 
        "Device not founds"); 
      return ; 
     } 

     for (BluetoothDevice devices : pairedDevices) { 
      Log.d("DeviceActivity", "Device : address : " + devices.getAddress() + " name :" 
        + devices.getName()); 
     } 
    } 

izninin de

+0

Yukarıdaki kod eşleşmiş cihaz listesini verecektir tanımlamak kaçırmayın yardımcı olabilir ardından. Şu anda bağlı bluetooth cihaz adresini istiyorum. – Sainath

+0

http://stackoverflow.com/questions/12509135/how-to-get-bluetooth-connected-devices-using-bluetoothheadset-api bu size yardımcı olabilir –

İlgili konular