package com.example.bluetooth.le; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.util.Log; public class BluetoothLeManagerService extends Service{ @SuppressWarnings("unused") private final IBinder mBinder = new LocalBinder(); public class LocalBinder extends Binder { public BluetoothLeManagerService getService() { return BluetoothLeManagerService.this; } } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } public void intialize(){ new BluetoothLeManagerThread().start(); } public void close(){ } private class BluetoothLeManagerThread extends Thread{ public void run(){ Log.i(null, "HELLO!"); } } }