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

2011-02-07 Thread Streets Of Boston
When the user hits retry, you should create a new AsyncTask instance, giving it the same parameters/input as the original one (essentially clone it) and execute it. If you don't know the original AsyncTask's parameters/input, you should change your asynctask-baseclass and add some public methods t

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

2011-02-08 Thread Streets Of Boston
Exactly. Just clone the original finished AsyncTask and call 'execute' on that clone. On Feb 7, 11:36 pm, Kevin Duffey wrote: > What happens when the async task finishes? Whatever created the first > instance of it, or whatever handles the response, should be able to create a > new instance agai