Couldn't you spawn a thread to do the work, then put a Runnable on the UI thread to do the actual updating of the UI?
On Wed, Jan 6, 2010 at 9:08 AM, skink <[email protected]> wrote: > > > On Jan 6, 1:52 pm, "Mark Murphy" <[email protected]> wrote: > > > I do a setContentView(R.layout.main); in my onCreate, but have a ton > > > of other things to do before the onCreate > > > finishes...and it take a lot of time for anything to show up on the > > > display. > > > Is there an easy way just to have the layout at least pop up then get > > > filled so I don't have the delay? > > > > Delay the extra work you have in onCreate() to a later point. For > example, > > use Handler#postDelayed() to have that work be done after 200ms, to allow > > Android to draw your layout. > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Android App Developer Books:http://commonsware.com/books.html > > hi, > > i'd use > > http://developer.android.com/intl/fr/reference/android/os/MessageQueue.html#addIdleHandler(android.os.MessageQueue.IdleHandler) > > pskink > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > >
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

