On Wed, Aug 17, 2011 at 5:26 PM, [email protected]
<[email protected]> wrote:
> yes, that's what i do,

This claim runs counter to:

> but it  is not clear for me, what means "task can be executed only
> once", if we suposse to do it exactly the opossite way ......

No, you are not supposed to "do it exactly the opossite [sic] way".
You are supposed to do it the way Streets of Boston indicated.

In other words, you can do this:

MyAsyncTask task=new MyAsyncTask();

task.execute();

// later

task=new MyAsyncTask();
task.execute();

but you cannot do:

MyAsyncTask task=new MyAsyncTask();

task.execute();

// later

// skipping task=new MyAsyncTask(); by trying to reuse the existing instance
task.execute();

You better follow what Streets of Boston tells you to do. He is a
rather large person. :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.9 Available!

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