Skip to content

Commit f50e73a

Browse files
Update README.md
1 parent 6d070a5 commit f50e73a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public class MainActivity extends Activity {
9898
@Override
9999
protected void onResume() {
100100
super.onResume();
101-
simpleBluetooth = new SimpleBluetooth(this, this);
102-
simpleBluetooth.initializeSimpleBluetooth();
103-
simpleBluetooth.setSimpleBluetoothListener(new SimpleBluetoothListener() {
101+
simpleBluetooth = new SimpleBluetooth(this, new SimpleBluetoothListener() {
104102

105103
@Override
106104
public void onBluetoothDataReceived(byte[] bytes, String data) {
@@ -129,6 +127,7 @@ public class MainActivity extends Activity {
129127

130128
}
131129
});
130+
simpleBluetooth.initializeSimpleBluetooth();
132131
}
133132

134133
@Override

0 commit comments

Comments
 (0)