赞
踩
-
- BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter(); if(bluetooth != null) { }
-
- if (bluetooth.isEnabled()) { } else{ }
-
- String status; if (bluetooth.isEnabled()) { String mydeviceaddress = bluetooth.getAddress(); String mydevicename = bluetooth.getName(); status = mydevicename + ” : ” + mydeviceaddress; } else{ status = “Bluetooth is not Enabled.”; } Toast.makeText(this, status, Toast.LENGTH_LONG).show();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。