1 Answer
1

If your processing may take more than milliseconds to process you may want to consider launching the processing in another thread which has access to a handler in the main thread.

Once you are done processing, you can then pass a message over to your handler which will then execute on the UI thread. This will help prevent those errors from coming up as well as make debugging your code easier.

If you are looking for an automated UI testing framework, perhaps you could look into integrating Robotium into your project.

and @arve... sincere thanks, but I'm not having any problems w/ debugging or testing of the code; i'm just concerned that the system gets hosed whenever I hold onto the thread.
–
paiegoFeb 20 '11 at 13:00