Page 80 - MDP2022-2
P. 80
}
});
right.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
if (mThreadConnectedBluetooth != null) {
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
mThreadConnectedBluetooth.write("d");
}
}
});
down.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
if (mThreadConnectedBluetooth != null) {