Hi All
I have an activity (hi score table) which makes a web call and displays the retrieved data. It's called using an intent from within an already running activity.
The problem I have is to make the activity display first..and then trigger the web call, so that I can show a loading symbol. At the moment, you don't see anything until the web call is finished, and then it shows the screen.
My book says that I should place my web call in onStart(), but the activity doesn't show until after the code I place there has completed.
Can anyone tell me where to place my initialisation code, so that it doesn't hold up the activity being displayed?
Hope that makes sense!
I have an activity (hi score table) which makes a web call and displays the retrieved data. It's called using an intent from within an already running activity.
The problem I have is to make the activity display first..and then trigger the web call, so that I can show a loading symbol. At the moment, you don't see anything until the web call is finished, and then it shows the screen.
My book says that I should place my web call in onStart(), but the activity doesn't show until after the code I place there has completed.
Can anyone tell me where to place my initialisation code, so that it doesn't hold up the activity being displayed?
Hope that makes sense!