Back to project page LibGeppa.
The source code is released under:
Apache License
If you think the Android project LibGeppa 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 net.cattaka.libgeppa.bluetooth; /*from ww w .jav a2s .c om*/ import java.io.IOException; import java.util.UUID; import android.bluetooth.BluetoothDevice; public class BluetoothDeviceWrapper implements IBluetoothDevice { private BluetoothDevice device; public BluetoothDeviceWrapper(BluetoothDevice device) { super(); this.device = device; } @Override public int hashCode() { return device.hashCode(); } @Override public String getAddress() { return device.getAddress(); } @Override public String getName() { return device.getName(); } @Override public IBluetoothSocket createRfcommSocketToServiceRecord(UUID uuid) throws IOException { return new BluetoothSocketWrapper(device.createRfcommSocketToServiceRecord(uuid)); } }