ok guys, i get it .. i suposse so :-( so ... considering that the application executes the task instance after the ocurrence of an user event (clickable button ...), how it is supossed to be controlled a double ocurrence of the same user requirement ... i mean, the user makes double click and the application tries to execute twice the same requirement (because input data is the same).
is it something to be controlled just by logical ? does it have a relationship whit isAlive() method ?? thanks for help! On Aug 17, 4:36 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Wed, Aug 17, 2011 at 5:26 PM, hectordu...@yahoo.com > > <hectordu...@yahoo.com> 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/commonsguyhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en