I want to send a notification after 5 seconds.

I found this code example to do something after **5 seconds**, but I just can set a `Log.e()`.  

The `Notification` method is also working. But if I want to call the method `setNotification()`, I get a `RuntimeError` after **5 seconds**: 

> 
> Can't create Handler inside Thread that has not called looper.prepare(). 
> 
> 
> 

I found very much help, but nothing works. So I hope you can help me.

```
public class Reminder {
    Timer timer;

    public Reminder(int seconds) {
        timer = new Timer();
        timer.schedule(new RemindTask(), seconds * 1000);
    }
}

class RemindTask extends TimerTask {
    public void run() { 
        todo_list rem = new todo_list();
        rem.setNotification("Todo!", false, 1);
    }
}

public class todo_list extends ListActivity {
    public void onCreate(Bundle savedInstanceState) {
        new Reminder(5);
    }

    public void setNotification(String text, boolean ongoing, int id) {}

}

```