Patent ID: 8539509

Claim:
An event queue managing device in a mobile device for managing a queue of an event, wherein the mobile device receives the event from a plurality of event handlers provided in accordance with an event classification upon occurrence of the event and notifies an application that is executed in an application execution environment, the event queue managing device comprising: queue managing means for storing a generated event in the event queue and managing the event queue; event classification detection means for detecting an event classification of the event in the event queue managed by the queue managing means; stop state detection means for detecting a stop state of the application execution environment wherein the event handler cannot receive the event; a new event detection means for detecting a newly generated event, the newly generated event is detected when the stop state of the application execution environment is detected by the stop state detection means; and event deletion means for deleting an event having the same event classification as that of the newly generated event, as an unnecessary event, from events stored in the event queue by the queue managing means, by referring to the event classification of the event detected by the event classification detection means when the newly generated event is detected by the new event detection means, when the stop state of the application execution environment is detected by the stop state detection means, wherein the queue managing means additionally stores the newly generated event in the event queue, after the unnecessary event is deleted by the event deletion means; and wherein the event classification of the event comprises a message box event, a mobile device open change event, a mobile device close change event or a designated time event.