[android-developers] Re: how to switch between two views

2009-02-19 Thread nEx.Software
I think onCreate runs all the way through before displaying the UI. I just tried this and found it to be the case. On Feb 18, 9:37 pm, guptha wrote: > hi friends, > I 'm beginner in Android ,To start with i was asked to do a simple > task ,i need to make blue and red screen appear on the screen

[android-developers] Re: how to switch between two views

2009-02-19 Thread Sundog
I think you're right. The changes seem to be buffered. In my experience if you setContentView to two different things, only the last one shows up. On Feb 19, 11:06 am, "nEx.Software" wrote: > I think onCreate runs all the way through before displaying the UI. > I just tried this and found it to

[android-developers] Re: how to switch between two views

2009-02-19 Thread nEx.Software
I also think the Thread.sleep(500); is stopping the redraw from happening. On Feb 19, 11:06 am, "nEx.Software" wrote: > I think onCreate runs all the way through before displaying the UI. > I just tried this and found it to be the case. > > On Feb 18, 9:37 pm, guptha wrote: > > > hi friends, >

[android-developers] Re: how to switch between two views

2009-02-20 Thread guptha
Can we use Handler to accomplish this task. On Feb 19, 11:12 pm, "nEx.Software" wrote: > I also think the Thread.sleep(500); is stopping the redraw from > happening. > > On Feb 19, 11:06 am, "nEx.Software" wrote: > > > I think onCreate runs all the way through before displaying the UI. > >

[android-developers] Re: how to switch between two views

2009-02-20 Thread for android
Use the ViewFlipper. onCreate will be run once.After which the UI will be displayed. On Fri, Feb 20, 2009 at 6:19 PM, guptha wrote: > > > Can we use Handler to accomplish this task. > > > > > On Feb 19, 11:12 pm, "nEx.Software" wrote: > > I also think the Thread.sleep(500); is stopping the re