My question is suppose i have to views(Screen). when i open my application from the emulator first screen should stay for just 5 secs and automatically new screen should appear(2nd).
i Know i can do this through timer concept but dnt know hwto do that in android?
So pls help me in this problem.
My question is suppose i have to views(Screen). when i open my application from
Share
I completely agree with EboMike about not showing a splash screen. It’s a bad practice with any app (desktop or android) and often just covers up sloppy programming. Get the user to do useful work as soon as possible and do any other startup work asynchronously.
However, sometimes lawyers are in charge of software, sometimes it’s a marketing person, and sometime you just can’t defer long startup code. In this case, you need an answer. The simplest is to have your main activity be your splash scree. In the splash screen activity, create a handler to start your real main activity doing something like this: