[android-developers] Re: Activity stack behavior

2008-11-19 Thread Mark Murphy
Alvin Yates wrote: Quick question: Is there a way to start a new activity and close the current one? Basically keep the Activity stack from growing, but my main concern is preventing multiple instances of the same Activity from spawning. Call startActivity() to spawn the new one, then call

[android-developers] Re: Activity stack behavior

2008-11-19 Thread Alvin Yates
Actually, I hadn't. But it doesn't seem to do 'quite' what I had in mind, since I was looking for a button to switch the views. That's when I found out I can do a quick switch from Activity to MapActivity, but the reverse crashes. If startFlipping() triggers instantly, then I'm fine. If not,

[android-developers] Re: Activity stack behavior

2008-11-19 Thread Mark Murphy
Alvin Yates wrote: Actually, I hadn't. But it doesn't seem to do 'quite' what I had in mind, since I was looking for a button to switch the views. That's when I found out I can do a quick switch from Activity to MapActivity, but the reverse crashes. If startFlipping() triggers instantly,