获取Android手机的手机名称

获取手机名称

    BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();
    String deviceName = myDevice.getName();

上面的代码需要android.permission.BLUETOOTH权限

猜你喜欢

转载自blog.csdn.net/loveliwenyan2012/article/details/79988921