OK. I'm going to make a wild guess as to how I might do this. Could someone comment on the reasonableness of this approach under Android? ...
1. As part of my Activity class, define a message type called, for example, MESSAGE_LONG_RUNNING_TASK_RESULT. 2. As part of my Activity class, define a message handler which responds to MESSAGE_LONG_RUNNING_TASK_RESULT. 3. Start a new thread. For the purpose of this discussion, call it "ControllerThread". 4. Inside the run() method of ControllerThread, create a FutureTask which invokes my long-running process. 5. Instantiate and invoke my FutureTask within ControllerThread and then wait for its results via "get(long timeout, TimeUnit unit)". 6. If the FutureTask times out, do nothing. 7. If the FutureTask completes properly, send its result back to the Activity class via a MESSAGE_LONG_RUNNING_TASK_RESULT message. Does this make sense? Thanks again. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

