On Fri, Mar 25, 2011 at 10:08 AM, Tobiah <[email protected]> wrote:

> So, it is "waiting" in a sense because of the sleep, but maybe you mean
> something else by "waiting"?
>

I don't, that's the idea. But you'd only get interrupted while in the
sleep(). You'd want something like

while (!isCanceled()):
{
doSomething();

if (!isCanceled())
 sleep(1000);
}

Although, that seems like a strange use of AsyncTask.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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

Reply via email to