Home » asynchandler

Tag: asynchandler

Android -11. Thread와 Handler

11.1. Thread <step9/ThreadSample> [php] Thread changeTextView1 = new Thread(start1); Thread changeTextView2 = new Thread(start2); // activity가 종료되면 쓰레드도 종료시킴 changeTextView1.setDaemon(true); (1) changeTextView2.setDaemon(true); changeTextView1.start(); (2) … 생략 private Runnable start1 = new Runnable() { public void run() { final int total = 150; while(count1 < total) { try { // UI 작업은 handler에서 처리, 핸들러로 메세지를 …

Read more