On Fri, Apr 2, 2010 at 5:23 AM, Pinheiro <rui.c.pinhe...@gmail.com> wrote:

> What am I missing?


A background thread.

Doing what you're doing is blocking the main (UI) thread, so nothing gets
drawn until your complete all calls you're making in onCreate, including the
long, blocking call to download your file. You want to spawn a thread or
start an AyncTask that will do this work in the background and send messages
to the main (UI) thread to tell it when to show and hide the progress bar.

Read up on threads in general and AsyncTask in particular. This should be a
FAQ at this point.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to