thanks for the answer Mark...
Well the idea of the AsyncTask was to have a place where progress
would be shown to a GUI element...
And the onProgressUpdate() method oviously was very tempting ;)
Anyhow, everything being asynchronous and thus not possible to
implement within a doInBackgournd() method I will simply scrap the
AsyncTask...
Also get your ass to the netherlands for some training sessions ;)

On 28 apr, 13:15, Mark Murphy <[email protected]> wrote:
> MobDev wrote:
> > hhmm ok...
> > So I guess it should be possible for example to make my own class
> > extendingAsyncTaskand implementing callaback interfaces to it from
> > the aforementioned modules, does that sound feasable/logical at all ?
>
> You shouldn't need that. The point ofAsyncTaskis to do things in a
> background thread. Hence, use synchronous operations, not asynchronous
> ones, from calls originating *inside*AsyncTask'sdoInBackground().
>
> > The
> > conneciton module has to be started, then the AsynTask will have to
> > wait for a response from that module telling it it's done downloading,
> > then theAsyncTaskshould start the parsing, wait till that's done and
> > then finally it can write to the DB...
>
> Why, then, are you using anAsyncTask?
>
> Either write everything as synchronous and then useAsyncTaskto move it
> to the background, or write everything as asynchronous and get rid of
> theAsyncTask. Using anAsyncTaskwon't make background work be even
> *more* background, after all.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in NYC: 4-6 June 2010:http://guruloft.com
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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