13 messages in com.googlegroups.android-developersRe: Help with Views. Switching betwee...
FromSent OnAttachments
redhunt28 Jan 2008 14:34 
Dan U.28 Jan 2008 14:43 
redhunt28 Jan 2008 14:56 
trickybit28 Jan 2008 14:57 
redhunt28 Jan 2008 15:15 
Dan U.28 Jan 2008 15:24 
dsrekab28 Jan 2008 18:28 
Dan U.28 Jan 2008 18:34 
Dan U.28 Jan 2008 18:37 
redhunt29 Jan 2008 09:00 
redhunt29 Jan 2008 09:01 
trickybit29 Jan 2008 10:59 
Flik31 Jan 2008 13:32 
Subject:Re: Help with Views. Switching between Views.
From:Dan U. (dan.@gmail.com)
Date:01/28/2008 06:37:59 PM
List:com.googlegroups.android-developers

On another note, I should explain how I do this kind of thing. I have one activity which I first set the content view on. After this, I pop up a ProgressDialog instead of a splash screen (you could pop up a custom dialog if you wanted something else). Then I do whatever lengthy processing I need and update the main UI. When that's done, just close the dialog. The only reason I could see for not doing it this was is if you didn't want your main activity to show until everything was loaded.

Yes, that sounds correct, but it might not be so great if you are expecting to do some processing for your second activity from your splash screen activity. I don't think you'd want to fire off the intent until after your processing is done, but where will your processing results go? If possible, you could pass through a bundle, or maybe into a sqllite db or file and that would be ok, then just load it into your second activity.

On Jan 28, 6:28 pm, dsrekab <dona@bellsouth.net> wrote:

I am kind of a newb, so if I am way off base here, I am sorry :(

Could you make the splash screen an Activity, then call the second screen as another Activity (using the Intent), then call the Activity.finish on the first?

I haven't ever used views so I may be completely in left field, if so