// Path: btutillib/src/main/java/com/devpaul/bluetoothutillib/utils/SimpleBluetoothListener.java
// public abstract class SimpleBluetoothListener {
// 
//     public SimpleBluetoothListener() {
//         super();
//     }
// 
//     @Override
//     protected final Object clone() throws CloneNotSupportedException {
//         return super.clone();
//     }
// 
//     @Override
//     public final boolean equals(Object o) {
//         return super.equals(o);
//     }
// 
//     @Override
//     protected final void finalize() throws Throwable {
//         super.finalize();
//     }
// 
//     @Override
//     public final int hashCode() {
//         return super.hashCode();
//     }
// 
//     @Override
//     public final String toString() {
//         return super.toString();
//     }
// 
//     /**
//      * Called when bluetooth data is receieved.
//      * @param bytes the raw byte buffer
//      * @param data the data as a string.
//      */
//     public void onBluetoothDataReceived(byte[] bytes, String data) {
// 
//     }
// 
//     /**
//      * Called when a device is connected.
//      * @param device
//      */
//     public void onDeviceConnected(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a device is disconnected.
//      * @param device
//      */
//     public void onDeviceDisconnected(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when discovery (scanning) is started.
//      */
//     public void onDiscoveryStarted() {
// 
//     }
// 
//     /**
//      * Called when discovery is finished.
//      */
//     public void onDiscoveryFinished() {
// 
//     }
// 
//     /**
//      * Called when a device is paired.
//      * @param device the paired device.
//      */
//     public void onDevicePaired(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a device is unpaired.
//      * @param device the unpaired device.
//      */
//     public void onDeviceUnpaired(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a request is made to connect to an A2dp device.
//      * @param bluetoothA2dp the a2dp device.
//      */
//     public void onBluetoothA2DPRequested(BluetoothA2dp bluetoothA2dp) {
// 
//     }
// }


import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
import com.devpaul.bluetoothutillib.utils.SimpleBluetoothListener;
package com.devpaul.bluetoothutillib.handlers;



/**
 * Created by Paul Tsouchlos
 * A handler for receiving messages from the bluetooth device.
 */
public class BluetoothHandler extends Handler {
    public static final int MESSAGE_READ = 121;
    public static final int MESSAGE_WAIT_FOR_CONNECTION = 143;
    public static final int MESSAGE_CONNECTION_MADE = 155;
    public static final int MESSAGE_A2DP_PROXY_RECEIVED = 157;
// Path: btutillib/src/main/java/com/devpaul/bluetoothutillib/utils/SimpleBluetoothListener.java
// public abstract class SimpleBluetoothListener {
// 
//     public SimpleBluetoothListener() {
//         super();
//     }
// 
//     @Override
//     protected final Object clone() throws CloneNotSupportedException {
//         return super.clone();
//     }
// 
//     @Override
//     public final boolean equals(Object o) {
//         return super.equals(o);
//     }
// 
//     @Override
//     protected final void finalize() throws Throwable {
//         super.finalize();
//     }
// 
//     @Override
//     public final int hashCode() {
//         return super.hashCode();
//     }
// 
//     @Override
//     public final String toString() {
//         return super.toString();
//     }
// 
//     /**
//      * Called when bluetooth data is receieved.
//      * @param bytes the raw byte buffer
//      * @param data the data as a string.
//      */
//     public void onBluetoothDataReceived(byte[] bytes, String data) {
// 
//     }
// 
//     /**
//      * Called when a device is connected.
//      * @param device
//      */
//     public void onDeviceConnected(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a device is disconnected.
//      * @param device
//      */
//     public void onDeviceDisconnected(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when discovery (scanning) is started.
//      */
//     public void onDiscoveryStarted() {
// 
//     }
// 
//     /**
//      * Called when discovery is finished.
//      */
//     public void onDiscoveryFinished() {
// 
//     }
// 
//     /**
//      * Called when a device is paired.
//      * @param device the paired device.
//      */
//     public void onDevicePaired(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a device is unpaired.
//      * @param device the unpaired device.
//      */
//     public void onDeviceUnpaired(BluetoothDevice device) {
// 
//     }
// 
//     /**
//      * Called when a request is made to connect to an A2dp device.
//      * @param bluetoothA2dp the a2dp device.
//      */
//     public void onBluetoothA2DPRequested(BluetoothA2dp bluetoothA2dp) {
// 
//     }
// }


// Path: btutillib/src/main/java/com/devpaul/bluetoothutillib/handlers/BluetoothHandler.java
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
import com.devpaul.bluetoothutillib.utils.SimpleBluetoothListener;

package com.devpaul.bluetoothutillib.handlers;



/**
 * Created by Paul Tsouchlos
 * A handler for receiving messages from the bluetooth device.
 */
public class BluetoothHandler extends Handler {
    public static final int MESSAGE_READ = 121;
    public static final int MESSAGE_WAIT_FOR_CONNECTION = 143;
    public static final int MESSAGE_CONNECTION_MADE = 155;
    public static final int MESSAGE_A2DP_PROXY_RECEIVED = 157;
    public SimpleBluetoothListener mListener;