[android-developers] Timing an ASyncTask
Hi all.
I'm running a network service within an ASyncTask. I want to be able
to time the task, and after a certain period of time interrupt it.
Is there a simple way to do this? Basically, when the doInBackground()
methods starts, I want to say "If it hasn't completed in 30 seconds,
do something else".
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home