I am a complete novice at Android and I am trying to add a splash screen following an online tutorial here: http://www.slideshare.net/YasmineSherif91/android-application-how-to-add-a-splash-screen-with-timer-tutorial-4
I am now getting the error Syntax error on token(s), misplaced construct(s) and I cannot for the life of me work out why. Any help much appreciated. Thanks My code is below
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
Thread logoTimer - new Thread (){
public void run(){
try{
int logoTimer = 0;
while (logoTimer<5000){
sleep(100);
logoTimer-=logoTimer+100;
}
startActivity(new Intent("com.nrobson.mot2.Clearscreen"))
)
finally(
finish());
}
};
}
logoTimer.start();