View Single Post
  #13 (permalink)  
Old August 18th, 2010, 07:53 PM
juniper juniper is offline
Registered User
Join Date: Aug 2010
Posts: 13
Thanks: 1
Thanked 2 Times in 2 Posts
Default Chapter 9 Earthquake 4

Hi MellowFellow,
I'd think you'd get better results running "Chapter 9 Earthquake 4" which uses an alarm instead of timer.

I had a lot of force closes while running Chapter 9 Earthquake 1-3. Reto mentions:

At this stage the earthquake processing is done in a Service, but it’s still being executed on the main GUI
thread. Later in this chapter you’ll learn how to move time-consuming operations onto background
threads to improve performance and avoid ‘‘Force Close’’ messages.
Similarly, the Service is constantly running, taking up valuable resources. Later sections will explain
how to replace the Timer with Alarms.
Reply With Quote