Tuesday, February 8, 2011

Re: [android-developers] Best practices for automatic retrying of AsyncTask

You could also grab the source for AsyncTask out of the repository,
change its package / name to include in your app, and change as needed:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/os/AsyncTask.java;h=5fb1d7c32879352170abbd6c56c1aa81f5fae175;hb=refs/heads/gingerbread

The code that prevents one from executing a finished task is in
execute(), lines 377-387.

-- Kostya

08.02.2011 5:38, Dimitris пишет:
> Could you please elaborate more and make an example?
>
> As for the Harmony HTTP API, yes it does have automatic retrying but
> at the end it will fail if a network error occurred
> (UnknownHostException, SocketTimeoutException etc...). I would need
> the user to initiate a retry then.
>
> Thank you!
> --
> 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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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

No comments:

Post a Comment