I tried with threads, but android throws \"CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.\".
So how can
Without the need to have a reference to a view or sleep a thread:
new Handler().postDelayed(new Runnable() { @Override public void run() { // do stuff } }, 3000);