@Override public void run() { int cnt=1; while(true) { Util.sleep(1000); MyNotification notif=new MyNotification("home.grown", this, cnt, "hello-" + cnt); notif.setName("Bela Ban"); cnt++; sendNotification(notif); } } }.start();
@Override public void run() { int cnt=1; while(true) { Util.sleep(1000); MyNotification notif=new MyNotification("home.grown", this, cnt, "hello-" + cnt); notif.setName("Bela Ban"); cnt++; sendNotification(notif); } } }.start();