Skip to content

Instantly share code, notes, and snippets.

View narayanacharya6's full-sized avatar
🏠
Working from home

Narayan Acharya narayanacharya6

🏠
Working from home
View GitHub Profile
@narayanacharya6
narayanacharya6 / BluetoothDataService.java
Last active June 18, 2023 11:33
A background service class for handling all your bluetooth communication wit another bluetooth module on Arduino, etc.
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
@narayanacharya6
narayanacharya6 / BluetoothDataService.java
Last active April 15, 2017 08:03
A background service class for handling all your bluetooth communication wit another bluetooth module on Arduino, etc.
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;