I have a splash screen and use a timer thread to display it for 2.5 seconds, that works fine but I get a blank page. If I remove the timer thread, my page displays perfectly.
Thread splashTimer = new Thread(){
public void run(){
try{
int splashTimer = 0;
while (splashTimer < 2500){
sleep(200);
splashTimer = splashTimer + 200;
Intent navMainPage = new Intent("com.extempor.cheetah.CLEARSCREEN");
startActivity(navMainPage);
}
}
catch(InterruptedException e){
e.printStackTrace();
}
finally{
finish();
}
}
};
splashTimer.run();
The page when it displays correctly shows a png image. I tried just a textview but nothing works while I have the timer thread. I'm using 2.3.3 and Eclipse 3.7
It seems that the timer thread is the standard way to show a splash screen, but why is no content displayed when I use it?