handler.postDelayed is not working in onHandleIntent method of IntentService
final Handler handler = new Handler(); LOG.d("delay"); handler.postDelayed(new Runnable() { @Override public void run() { LOG.d("notify!"); //calling some methods here } }, 2000); The "delay" does shows in the log, but not others at all. And the method called in the run() is not called at all also. Can anyone help explain why this happens, am I doing anything wrong? The class that has this code extends IntentService, will this be a problem? ============================ UPDATE: I put this code in the class that extends IntentService . The only place I found it worked was in the constructor. But