In Blackberry's Application class what is the difference between hasEventThread() and isHandlingEven

Posted by Eric Sniff on Stack Overflow See other posts from Stack Overflow or by Eric Sniff
Published on 2010-05-26T21:10:24Z Indexed on 2010/05/26 21:11 UTC
Read the original article Hit count: 138

Filed under:

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 isHandlingEvents() 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?

© Stack Overflow or respective owner

Related posts about blackberry