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();
}
This code don't work why?