| | |
| | | import android.content.pm.PackageManager; |
| | | import android.os.Bundle; |
| | | import android.os.IBinder; |
| | | import android.os.Message; |
| | | import android.support.annotation.NonNull; |
| | | import android.support.annotation.Nullable; |
| | | import android.support.v4.app.ActivityCompat; |
| | |
| | | |
| | | @Override |
| | | public void onServiceDisconnected(ComponentName name) { |
| | | if (mBluetoothService != null) { |
| | | mBluetoothService.cancelScan(); |
| | | mBluetoothService.closeConnect(); |
| | | mBluetoothService = null; |
| | | } |
| | | } |
| | | }; |
| | | |
| | | private BluetoothService.Callback callback = new BluetoothService.Callback() { |