aboutsummaryrefslogtreecommitdiffstats
path: root/java/BluetoothAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/BluetoothAdapter.java')
-rw-r--r--java/BluetoothAdapter.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/BluetoothAdapter.java b/java/BluetoothAdapter.java
index 10c39a2d..2761b4bb 100644
--- a/java/BluetoothAdapter.java
+++ b/java/BluetoothAdapter.java
@@ -230,6 +230,14 @@ public class BluetoothAdapter extends BluetoothObject
* @return The local ID of the adapter.
*/
public native String getModalias();
+
+ /** Returns the interface name of the adapter.
+ * @return The interface name of the adapter.
+ */
+ public String getInterfaceName() {
+ String[] path = getObjectPath().split("/");
+ return path[path.length-1];
+ }
private native void delete();