function bluetooth_list(){
var main = plus.android.runtimeMainActivity();
var BluetoothAdapter = plus.android.importClass("android.bluetooth.BluetoothAdapter");
var BAdapter = BluetoothAdapter.getDefaultAdapter();
var Context = plus.android.importClass("android.content.Context");
var lists = BAdapter.getBondedDevices();
plus.android.importClass(lists);
var len = lists.size();
console.log(lists);
}
结果:
[B0:E0:3C:D7:BC:3C, 70:72:3C:96:19:2D, 06:04:01:01:06:CD, 00:BA:55:56:96:68, 00:0D:44:F8:61:D3, 00:18:91:62:B9:54]
Jayming1024 (作者)
爱死你了
2015-07-17 11:08