In Blackberry's Application class what is the difference between hasEventThread() and isHandlingEvents()
In Blackberry's Application class what is the difference between hasEventThread() and isHandlingEvents(). I'm just curious, because I have only found hasEventThread useful.
From BB's docs for Applicaiton:
public boolean hasEventThread() Determines if this application has entered the event dispatcher. Returns: True if this application has entered the event dispatcher (i.e. has invoked Application.enterEventDispatcher()); otherwise, false. isHandlingEvents
public final boolean isHandl开发者_如何学编程ingEvents() Determines if this application has entered the event dispatch loop. Returns: True if the application has entered the event dispatch loop; otherwise, false.
My only guess is that isHandlingEvents most happen sometime after hasEventThread. But is that really that useful?
They do exactly the same thing. I'm not sure why they both exist; probably legacy code and they possibly did different things in the past. But they've certainly converged as on now.
精彩评论