Android CS323 Cornez

Lab 7

Exploring Threads, Handlers, Loopers









Exercise

.
  1. Construct a basic Digital Stopwatch using Thread and Handler (MessageQueue + Looper).
  2. As shown in the image, you only need to implement a start and stop button.
  3. The start button will automatically reset the timer to zero.
  4. A stopwatch time includes minutes, seconds, and milliseconds.
  5. Once timing has "started", the stopwatch application will require continual updates to the UI timer display.
  6. Coordinate between the UI thread, a handler, and the default UI Looper to perform repeated updates to the display.
  7. You may use the image components: