You can look at some AsyncTask examples, but really, you should also put some interest into this:
http://developer.android.com/guide/topics/fundamentals/loaders.html This was introduced in 3.0 (which I haven't gotten as much of a chance to play around with as I should have yet). I think that Mark Murphy points out something to do <3.0, but I don't remember at the moment. AsyncTask should have examples, as well as a tutorial or two out there. kris On Wed, Jan 25, 2012 at 3:56 AM, Cheah Peng Huat <[email protected]> wrote: > Thank you for your reply. Any example code i can refer to? > > On Jan 17, 10:27 am, Kristopher Micinski <[email protected]> > wrote: >> To go along with that, you can't directly update the UI from a random >> thread, and you need to look into a Messenger, then do something like >> fill the buffer in one thread (perhaps an AsyncTask?) and then 'poke' >> the UI thread to update the view when you're done. >> >> kris >> >> On Mon, Jan 16, 2012 at 1:32 PM, Ricardo Santos >> >> >> >> <[email protected]> wrote: >> > Why don't you make a thread that keeps checking for changes on the file, >> > than, if a change is detected, you can update all the data... Or, create a >> > button "update data now"... >> >> > On Fri, Jan 13, 2012 at 7:16 AM, Cheah Peng Huat <[email protected]> >> > wrote: >> >> >> I have a problem trying to get dynamic data from XML. I have written >> >> code to parse data from xml, but the data only update once when i >> >> execute the application. >> >> What i want is continuosly update of data. >> >> >> Can anyone help me on that? Thank you. >> >> >> -- >> >> 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 >> >> > -- >> > 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- Hide quoted text - >> >> - Show quoted text - > > -- > 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 -- 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

