Mark Murphy wrote: > Brian Conrad wrote: > >> To be even more precise it is one string with carriage returns. The >> data is calculated by the program. The layout is in XML and handling >> the interface programmatically won't make a difference. This only takes >> 4-5 seconds but I still want a some kind of indicator of that. This >> string is part of the main display about 40 rows worth so we have to >> wait for them. >> > > 4-5 seconds to generate 1-2K worth of string data seems like a lot, but > I'll take it on faith that it really does need to take that long. > It's actually 2.7 seconds long and floating point math is involved. >> I'll play around with some threads though and see what happens >> > > Pretty much anything Android can offer in the way of progress indication > support requires a background thread, whether explicitly created by you > or implicitly created by a framework (e.g., 1.5's AsyncTask). > This project has been migrated to 1.5 but I was yet unaware of the AysncTask so thanks for pointing that out. It looks like it might be the answer for these kind of situations.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

