i have an rss feed that comes via an XML. There are several events that are returned with information about them. The events are returned with tags…for eg: ….info…
as soon as i encounter tag, i want to update the listview that i am using to show the events.
So the user does not see the loading progress dialog, rather he sees the events getting added to a list.
How do i do this.
thank you in advance.
Here’s pseudo codeish example for one way of doing this using SAX parser;
And in your parser you’re implementing ContentHandler
And triggering parsing once your onCreate is called would be;
Now this isn’t perfect but hopefully gives some idea how to do Thread handling for this purpose. Fundamentally you just have start it, and adding ‘cancel’ functionality is somewhat more of a bonus – e.g. for cases in which Activity is destroyed while your Thread is running.