Yes, that is a bit more complex. First, don't confuse SAX handler
callbacks with GUI handler callbacks. Two approaches:

1) Make AsyncTask implement org.sax.ContentHandler. That way the
SAX callbacks have direct access to AsyncTask.publishProgress().
2) Create a delegate so that the parser has a handle back to AsyncTask for
posting progress updates.

If you switch to XPP, you can just put the whole parser into AsyncTask, or
use a delegate to callback AsyncTask.

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

Reply via email to