Page 255 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 255
connectThreadright.start();
}
public void clickclose(View view) {
CloseThread closeThread = new CloseThread();
closeThread.start();
}
public void clickup(View view) {
ConnectThreadup connectThreadup = new ConnectThreadup();
connectThreadup.start();
}
public void clickdown(View view) {
ConnectThreaddown connectThreaddown = new ConnectThreaddown();
connectThreaddown.start();
}
class ConnectThreadback extends Thread { //기어드 모터 뒤로
public void run() {
connect();
}
public void connect() {
try {
oos = socket.getOutputStream();
oos.write('s');
} catch (Exception e) {
e.printStackTrace();
}
}
}
- 248 -