What's wrong with the Thread?
<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Thread thread = new Thread(){
        public void run() {
            try {
                sleep(50);
                Toast toast = Toast.makeText(getApplicationContext(), "Logged In", 100);
                toast.show();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    };
    thread.start();
}
</code></pre>

<p>This code don't work why?</p>
