Back to project page BluetoothRecord.
The source code is released under:
Apache License
If you think the Android project BluetoothRecord listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.audioserver; /*w ww . jav a 2 s . co m*/ import java.io.IOException; import javax.bluetooth.LocalDevice; public class ServerCommand { public static void main(String[] args) throws IOException { //display local device address and name LocalDevice localDevice = LocalDevice.getLocalDevice(); System.out.println("Address: "+localDevice.getBluetoothAddress()); System.out.println("Name: "+localDevice.getFriendlyName()); BTServer BTCommand=new BTServer(); BTCommand.startServer(); } }