Android Open Source - GlassToPhoneBluetooth Bluetooth Connection

From Project

Back to project page GlassToPhoneBluetooth.


The source code is released under:

MIT License

If you think the Android project GlassToPhoneBluetooth listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ktlab.lib.connection.bluetooth;
/*w ww .ja v a2  m*/
import java.nio.ByteOrder;
import java.util.UUID;

import android.os.Message;

import ktlab.lib.connection.Connection;
import ktlab.lib.connection.ConnectionCallback;

public abstract class BluetoothConnection extends Connection {

    // SPP UUID
    protected static final UUID SERVICE_UUID =

    public BluetoothConnection(ConnectionCallback cb, boolean canQueueing) {
        super(cb, canQueueing);

    public BluetoothConnection(ConnectionCallback cb, boolean canQueueing, ByteOrder order) {
        super(cb, canQueueing, order);

    public void handleMessage(Message msg) {


Java Source Code List