loudo wrote: > My application parse an xml file dans display data in a list view. > On start of application i load data using an AsyncTask. A Progress > Dialog is display during the load. > This part works fine. > > A button in the application make it possible to reload the data. > I would like to run the AsyncTask but the sytem say i can't alter > view in other thread.
In any AsyncTask, you should be modifying your UI via onPostExecute(), or perhaps onProgressUpdate(). Note that "modifying your UI" includes things like updating an adapter that is already connected to a ListView. > I have also read an AsyncTask can't be run > another time : > http://android-developers.blogspot.com/2009/05/painless-threading.html So, create a new one (new ThisIsMyTask().execute()). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

