We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d070a5 commit f50e73aCopy full SHA for f50e73a
README.md
@@ -98,9 +98,7 @@ public class MainActivity extends Activity {
98
@Override
99
protected void onResume() {
100
super.onResume();
101
- simpleBluetooth = new SimpleBluetooth(this, this);
102
- simpleBluetooth.initializeSimpleBluetooth();
103
- simpleBluetooth.setSimpleBluetoothListener(new SimpleBluetoothListener() {
+ simpleBluetooth = new SimpleBluetooth(this, new SimpleBluetoothListener() {
104
105
106
public void onBluetoothDataReceived(byte[] bytes, String data) {
@@ -129,6 +127,7 @@ public class MainActivity extends Activity {
129
127
130
128
}
131
});
+ simpleBluetooth.initializeSimpleBluetooth();
132
133
134
0 commit comments