Syntax error on token(s), misplaced construct(s) Android
<p>I am a complete novice at Android and I am trying to add a splash screen following an online tutorial here: <a href="http://www.slideshare.net/YasmineSherif91/android-application-how-to-add-a-splash-screen-with-timer-tutorial-4" rel="nofollow">http://www.slideshare.net/YasmineSherif91/android-application-how-to-add-a-splash-screen-with-timer-tutorial-4</a> </p>

<p>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</p>

<pre><code>    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&lt;5000){
                        sleep(100);
                        logoTimer-=logoTimer+100;
                        }
                    startActivity(new Intent("com.nrobson.mot2.Clearscreen"))
                    )
                    finally(
                            finish());
        }
    };
    }
    logoTimer.start();
</code></pre>
