Not in another thread, that won't work as your UI code must run in the main
thread. But just set your main activity to a loader that loads your stuff
and displays a splash screen, then when everything is loaded fire off an
intent to start your "real" main activity. What are you loading?

Kris
On Dec 7, 2011 8:54 PM, "John Goche" <[email protected]> wrote:

>
> Thanks Rich,
>
> What do you mean by do the loading in the background. Do I have to call
> startActivity() in a separate thread?
> When you say send a message back to the activity do you mean I should call
> startActivityForResult()?
>
> Thanks,
>
> John Goche
>
> On Wed, Dec 7, 2011 at 9:45 PM, rich friedel <[email protected]>wrote:
>
>> Just make an activity that is your splash screen then do the loading in
>> the background. When it's done send a message back to the activity and move
>> on.
>>
>> You could also create a "loading"/"setting things up"/"building your data
>> spinner" dialog.
>>
>>
>>  --
> 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

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