new Thread() {
public void run() {
try {
Thread.sleep(4000);
EventBus.getDefault().post("kaka4000");
} catch (InterruptedException e) {
e.printStackTrace();
}
};
public void run() {
try {
Thread.sleep(4000);
EventBus.getDefault().post("kaka4000");
} catch (InterruptedException e) {
e.printStackTrace();
}
};
}.start();
也可以用Thread.sleep延迟线程