Código Javascript:
Ver original
mBluetoothAdapter.setName("HTC Hero Debug"); // here I made an array of bonded devices Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); int i=0; for (BluetoothDevice bluetoothDevice:pairedDevices){ dispositivos[i]=bluetoothDevice; i++; }