Brian Conrad wrote:
> I have an application that initializes a bunch of strings on startup.  

Hopefully, in a background thread.

> Apparently none of these things will work until the 
> layout is displayed? 

More precisely, none of these things will display if you are hogging the
UI thread.

> What workarounds are there?

You have not indicated where the strings are stored (resources?
literally in the layout? XML file? plain text file? database column?
fetched from the Internet? randomly generated based on device orientation?).

Generally speaking, when things take a while, you want to cause the "a
while" to happen in a background thread, possibly using a progress bar
or animation or something if the UI is not terribly useful until the
background work is complete.

If you could be a bit more specific on how you are trying to load
strings today that is causing such a slowdown, we might be able to give
more specific advice.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html

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

Reply via email to