CN107656790A - A kind of switching method, storage medium and the mobile terminal at event handling interface - Google Patents
A kind of switching method, storage medium and the mobile terminal at event handling interface Download PDFInfo
- Publication number
- CN107656790A CN107656790A CN201710910303.0A CN201710910303A CN107656790A CN 107656790 A CN107656790 A CN 107656790A CN 201710910303 A CN201710910303 A CN 201710910303A CN 107656790 A CN107656790 A CN 107656790A
- Authority
- CN
- China
- Prior art keywords
- event
- event handling
- interface
- pending
- handling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/484—Precedence
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Method, storage medium and the mobile terminal of a kind of switching at event handling interface provided by the present invention, method include:When mobile terminal has detected that one or more pending events enter system, then judge whether current interface is in event handling state;If current interface is in event handling state, pending event is controlled to sequentially enter wait state according to the order of first in first out;When current interface event handling terminates, then control pending event to switch to event handling interface successively according to the order of first in first out and handled.The present invention according to the order of first in first out by when there is one or more pending events to enter system, carrying out the changing interface of pending event, so as to improve the efficiency of event handling.
Description
Technical field
The present invention relates to changing interface technical field, more particularly to a kind of switching method at event handling interface, deposit
Storage media and mobile terminal.
Background technology
In production and living, people are using mobile terminal(Such as mobile phone, tablet personal computer)When, it can usually run into while have several
The situation of event to be processed, such as when conversing, there is phone to enter or have short message entrance again, there is the entrance of wechat message, have
QQ message entrance etc., at this moment just needs singly to handle, still, when current interface has the event handled, or
When person does not have the event to check that the message into system but needs to handle one by one one by one, it will become to have no way of doing it, greatly
The big efficiency for reducing event handling.
Therefore prior art is improved up for further.
The content of the invention
In view of above-mentioned weak point of the prior art, it is an object of the invention to provide the user a kind of event handling circle
Method, storage medium and the mobile terminal of the switching in face, mobile terminal is set to carry out in an orderly manner there are multiple events to enter fashionable
The changing interface of pending event, so as to improve the efficiency of event handling.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of method of the switching at event handling interface, wherein, methods described includes step:
When mobile terminal has detected that one or more pending events enter system, then judge whether current interface is in event
Processing state;
If current interface is in event handling state, pending event is controlled to sequentially enter wait according to the order of first in first out
State;
When current interface event handling terminates, then pending event is controlled to be switched to successively at event according to the order of first in first out
Reason interface is handled.
The method of the switching at described event handling interface, wherein, in addition to:If current interface is not in event handling shape
State, then directly control pending event to switch to event handling interface successively according to the order of first in first out and handled.
The method of the switching at described event handling interface, wherein, the mobile terminal has detected that one or more is treated
Processing event is entered fashionable, then judges that the step of whether current interface is in event handling state specifically includes:
When mobile terminal has detected that one or more pending events enter system, then start event handling detection module;
Whether the event handling detection module detection current interface is in event handling state.
The method of the switching at described event handling interface, wherein, if current interface is in event handling state, control
The step of pending event sequentially enters wait state according to the order of first in first out specifically includes:
If current interface is in event handling state, start the event handling unit in event handling detection module;
The event handling unit sends request event and reads instruction to central processing unit;
Central processing unit is sequentially output pending event according to the order of first in first out.
The method of the switching at described event handling interface, wherein, send request event in the event handling unit and read
Also include before instruction fetch to central processing unit:
If current interface is in event handling state, the event handling unit sends event handling interrupt signal to central processing
Device, ask central processing unit priority treatment current interface event;
Central processing unit sends event and reads instruction, reads priority treatment current interface event command and shows current interface thing
Part.
The method of the switching at described event handling interface, wherein, send event in the central processing unit and read instruction,
After reading priority treatment current interface event command and showing current interface event, in addition to:
Event handling unit sends event wait and handles interrupt signal to central processing unit, asks central processing unit by pending thing
Part enters wait state by the order of first in first out;
Central processing unit outgoing event waits process instruction, and by the pending event of sequence identification of first in first out.
The method of the switching at described event handling interface, wherein, it is described when current interface event handling terminates, then
Control pending event to switch to the step of event handling interface is handled successively according to the order of first in first out to specifically include:
When current interface event handling terminates, central controller sends event handling switch-over control signal to event handling and switches mould
Block;
The event handling handover module switches to first according to event handling switch-over control signal and enters the pending of system
The interface of event.
The method of the switching at described event handling interface, wherein, when the previous pending event handling into system
After end, automatically into the interface of next pending event.
A kind of storage medium, wherein, the storage medium is stored with computer program, and the computer program can be held
Go to realize the method described in as above any one.
A kind of mobile terminal, wherein, including:Processor, the memory being connected with processor communication, the memory storage
There is computer program, the as above method described in any one is realized when the computer program is used to be performed;The processor is used
In calling the computer program in the memory, to realize the method described in as above any one.
Beneficial effect:Method, storage medium and the movement of a kind of switching at event handling interface provided by the present invention are eventually
End, method include:When mobile terminal has detected that one or more pending events enter system, then whether current interface is judged
In event handling state;If current interface is in event handling state, pending event is controlled according to the suitable of first in first out
Sequence sequentially enters wait state;When current interface event handling terminates, then order of the pending event according to first in first out is controlled
Event handling interface is switched to successively to be handled.The present invention by when there is one or more pending events to enter system,
The changing interface of pending event is carried out according to the order of first in first out, so as to improve the efficiency of event handling.
Brief description of the drawings
Fig. 1 is the flow chart of the method preferred embodiment of the switching at event handling interface of the present invention.
Fig. 2 is to judge current interface state in the method preferred embodiment of the switching at event handling interface of the present invention
Workflow diagram.
Fig. 3 is to control pending event to enter in the method preferred embodiment of the switching at event handling interface of the present invention
Enter the workflow diagram of wait state.
Fig. 4 is to control pending event to cut in the method preferred embodiment of the switching at event handling interface of the present invention
Shift to the workflow diagram at pending interface.
Fig. 5 is the functional schematic block diagram of mobile terminal of the present invention.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and do not have to
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the flow chart of the method preferred embodiment of the switching at event handling interface of the present invention.
As shown in figure 1, methods described includes step:
Step S100, when mobile terminal has detected that one or more pending events enter system, then judge that current interface is
It is no to be in event handling state.
If step S200, current interface is in event handling state, pending event is controlled according to the suitable of first in first out
Sequence sequentially enters wait state.
Step S300, when current interface event handling terminates, then control pending event according to first in first out order according to
The secondary event handling interface that switches to is handled.
When it is implemented, first, when mobile terminal has detected that one or more pending events enter system, then judge
Whether current interface is in event handling state, if current interface is in event handling state, control pending event according to
The order of first in first out sequentially enters wait state, when current interface event handling terminates, then controls pending event according to elder generation
Enter the order first gone out and switch to event handling interface successively to be handled.Further, in addition to:If current interface is not in thing
Part handles state, then directly controls pending event to be switched to successively at event handling interface according to the order of first in first out
Reason.
It can be seen that when user is using mobile terminal(Such as mobile phone, tablet personal computer)Run into while there are several events to be processed
Situation when, it is only necessary to the changing interface of pending event can be carried out in an orderly manner using above processing method, so as to improve thing
The efficiency of part processing.
Further, as shown in Fig. 2 the step S100 is specifically included:
When S101, mobile terminal have detected that one or more pending events enter system, then start event handling detection mould
Block.
Whether S102, event handling detection module detection current interface are in event handling state.
When it is implemented, when mobile terminal has detected that one or more pending events enter system, then start thing
Part processing detection module, the event handling detection module are used for detecting event processing state.The event handling detection module
Current interface is detected whether after event handling state, testing result is fed back into system.
Further, as shown in figure 3, the step S200 is specifically included:
If step S201, current interface is in event handling state, start the event handling list in event handling detection module
Member.
Step S202, described event handling unit sends request event and reads instruction to central processing unit.
Step S203, central processing unit is sequentially output pending event according to the order of first in first out.
Wherein, being sent in the event handling unit before request event reads instruction to central processing unit also includes:
If current interface is in event handling state, the event handling unit sends event handling interrupt signal to central processing
Device, ask central processing unit priority treatment current interface event;
Central processing unit sends event and reads instruction, reads priority treatment current interface event command and shows current interface thing
Part.
Event is sent in the central processing unit and reads instruction, is read priority treatment current interface event command and is shown and works as
After front interface event, in addition to:
Event handling unit sends event wait and handles interrupt signal to central processing unit, asks central processing unit by pending thing
Part enters wait state by the order of first in first out;
Central processing unit outgoing event waits process instruction, and by the pending event of sequence identification of first in first out.
When it is implemented, in presently preferred embodiments of the present invention, if current interface is in event handling state, start event
Event handling unit in processing detection module, the event handling unit send request event and read instruction to central processing
Device, central processing unit are sequentially output pending event according to the order of first in first out.For example, if current interface is in event handling
State, then start the event handling unit in event handling detection module, and the event handling unit sends request event and read
Instruction to central processing unit, central processing unit is sequentially output pending event according to the order of first in first out.And before this also
If being in event handling state including current interface, the event handling unit sends event handling interrupt signal to central processing
Device, central processing unit priority treatment current interface event is asked, central processing unit then sends event and reads instruction, reads preferential place
Front interface event command and current interface event should be shown.Event is sent in the central processing unit and reads instruction, is read excellent
After first handling current interface event command and showing current interface event, event handling unit sends event wait processing and interrupted
Pending event is entered wait state by signal to central processing unit, request central processing unit by the order of first in first out;Center
Processor outgoing event waits process instruction, and by the pending event of sequence identification of first in first out.
Further embodiment, as shown in figure 4, the step S300 is specifically included:
Step S301, when current interface event handling terminates, central controller sends event handling switch-over control signal to event
Process switching module.
Step S302, described event handling handover module switches to first entrance according to event handling switch-over control signal
The interface of the pending event of system.
Wherein, after the previous pending event handling into system terminates, automatically into next pending event
Interface.
When it is implemented, current interface event handling terminates, central controller sends event handling switch-over control signal extremely
Event handling handover module, the event handling handover module switch to first entrance according to event handling switch-over control signal
The interface of the pending event of system.That is, after current interface event handling terminates, central controller is transmission event
Process switching control signal, control switch to the interface of first pending event for entering system and processing;When first
After one pending event handling for entering system terminates, then automatically into second pending event for entering system, with this
Analogize, stop switching until pending event is all disposed.
Present invention also offers a kind of mobile terminal, as shown in figure 5, the mobile terminal includes:Processor
(processor) 10, memory (memory) 20, communication interface (Communications Interface) 30 and communication bus
40;Wherein, the processor 10, memory 20, communication interface 30 complete mutual communication by the communication bus 40;
The information transfer that the communication interface 30 is used between the communication equipment of the terminal;The processor 10 is used to call institute
The computer program in memory 20 is stated, to perform the method that above-mentioned each method embodiment is provided, such as including:Mobile terminal
When having detected that one or more pending events enter system, then judge whether current interface is in event handling state;If
Current interface is in event handling state, then controls pending event to sequentially enter wait state according to the order of first in first out;
When current interface event handling terminates, then pending event is controlled to switch to event handling circle successively according to the order of first in first out
Face is handled.
The present invention also provides a kind of storage medium, wherein, the storage medium is stored with computer program, the computer
Program can be performed to realize the method for the switching at the event handling interface.
In summary, a kind of method of the switching at event handling interface provided by the present invention, storage medium and movement are whole
End, method include:When mobile terminal has detected that one or more pending events enter system, then whether current interface is judged
In event handling state;If current interface is in event handling state, pending event is controlled according to the suitable of first in first out
Sequence sequentially enters wait state;When current interface event handling terminates, then order of the pending event according to first in first out is controlled
Event handling interface is switched to successively to be handled.The present invention by when there is one or more pending events to enter system,
The changing interface of pending event is carried out according to the order of first in first out, so as to improve the efficiency of event handling.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,
It is that related hardware can be instructed by computer program(Such as processor, controller etc.)To complete, described program can store
In a computer-readable storage medium, the program may include such as the flow of above-mentioned each method embodiment upon execution.Its
Described in storage medium can be memory, magnetic disc, CD etc..
It is understood that for those of ordinary skills, can be with technique according to the invention scheme and its hair
Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention
Protect scope.
Claims (10)
- A kind of 1. method of the switching at event handling interface, it is characterised in that methods described includes step:When mobile terminal has detected that one or more pending events enter system, then judge whether current interface is in event Processing state;If current interface is in event handling state, pending event is controlled to sequentially enter wait according to the order of first in first out State;When current interface event handling terminates, then pending event is controlled to be switched to successively at event according to the order of first in first out Reason interface is handled.
- 2. the method for the switching at event handling interface according to claim 1, it is characterised in that also include:If work as prezone Face is not in event handling state, then directly controls pending event to switch to event handling successively according to the order of first in first out Interface is handled.
- 3. the method for the switching at event handling interface according to claim 2, it is characterised in that the mobile terminal detection It is fashionable to there is one or more pending events to enter, then judge that the step of whether current interface is in event handling state is specifically wrapped Include:When mobile terminal has detected that one or more pending events enter system, then start event handling detection module;Whether the event handling detection module detection current interface is in event handling state.
- 4. the method for the switching at event handling interface according to claim 3, it is characterised in that if current interface is in thing Part handles state, then the step of controlling pending event to sequentially enter wait state according to the order of first in first out specifically includes:If current interface is in event handling state, start the event handling unit in event handling detection module;The event handling unit sends request event and reads instruction to central processing unit;Central processing unit is sequentially output pending event according to the order of first in first out.
- 5. the method for the switching at event handling interface according to claim 4, it is characterised in that in the event handling list Member, which is sent before request event reads instruction to central processing unit, also to be included:If current interface is in event handling state, the event handling unit sends event handling interrupt signal to central processing Device, ask central processing unit priority treatment current interface event;Central processing unit sends event and reads instruction, reads priority treatment current interface event command and shows current interface thing Part.
- 6. the method for the switching at event handling interface according to claim 5, it is characterised in that in the central processing unit Send event and read instruction, after reading priority treatment current interface event command and showing current interface event, in addition to:Event handling unit sends event wait and handles interrupt signal to central processing unit, asks central processing unit by pending thing Part enters wait state by the order of first in first out;Central processing unit outgoing event waits process instruction, and by the pending event of sequence identification of first in first out.
- 7. the method for the switching at event handling interface according to claim 6, it is characterised in that described to work as prezone Face event handling terminates, then controls pending event to be switched to successively at event handling interface according to the order of first in first out The step of reason, specifically includes:When current interface event handling terminates, central controller sends event handling switch-over control signal to event handling and switches mould Block;The event handling handover module switches to first according to event handling switch-over control signal and enters the pending of system The interface of event.
- 8. the method for the switching at event handling interface according to claim 7, it is characterised in that enter system when previous Pending event handling terminate after, automatically into the interface of next pending event.
- 9. a kind of storage medium, it is characterised in that the storage medium is stored with computer program, and the computer program can It is performed to realize the method as described in claim any one of 1-8.
- A kind of 10. mobile terminal, it is characterised in that including:Processor, the memory being connected with processor communication, the storage Device is stored with computer program, and the side as described in claim any one of 1-8 is realized when the computer program is used to be performed Method;The processor is used to call the computer program in the memory, to realize as described in claim any one of 1-8 Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710910303.0A CN107656790A (en) | 2017-09-29 | 2017-09-29 | A kind of switching method, storage medium and the mobile terminal at event handling interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710910303.0A CN107656790A (en) | 2017-09-29 | 2017-09-29 | A kind of switching method, storage medium and the mobile terminal at event handling interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107656790A true CN107656790A (en) | 2018-02-02 |
Family
ID=61117330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710910303.0A Pending CN107656790A (en) | 2017-09-29 | 2017-09-29 | A kind of switching method, storage medium and the mobile terminal at event handling interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107656790A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040202165A1 (en) * | 2002-12-06 | 2004-10-14 | International Business Machines Corporation | Message processing apparatus, method and program |
CN101640853A (en) * | 2008-07-30 | 2010-02-03 | 中兴通讯股份有限公司 | Method and device for processing multimedia messaging service notification message and multimedia messaging service receiving system |
US20130086332A1 (en) * | 2010-05-18 | 2013-04-04 | Lsi Corporation | Task Queuing in a Multi-Flow Network Processor Architecture |
CN103345427A (en) * | 2013-07-15 | 2013-10-09 | 四川公用信息产业有限责任公司 | View switching system and method based on Android message handling mechanism |
US20140068635A1 (en) * | 2012-08-31 | 2014-03-06 | Sap Ag | In-order message processing with message-dependency handling |
CN104239130A (en) * | 2014-08-15 | 2014-12-24 | 北京配天技术有限公司 | Control method of operating instruction response by human-computer interaction interface and terminal |
CN105893119A (en) * | 2016-03-31 | 2016-08-24 | 广东美的厨房电器制造有限公司 | Event handling method and device based on single-chip microcomputer system and single-chip microcomputer system |
-
2017
- 2017-09-29 CN CN201710910303.0A patent/CN107656790A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040202165A1 (en) * | 2002-12-06 | 2004-10-14 | International Business Machines Corporation | Message processing apparatus, method and program |
CN101640853A (en) * | 2008-07-30 | 2010-02-03 | 中兴通讯股份有限公司 | Method and device for processing multimedia messaging service notification message and multimedia messaging service receiving system |
US20130086332A1 (en) * | 2010-05-18 | 2013-04-04 | Lsi Corporation | Task Queuing in a Multi-Flow Network Processor Architecture |
US20140068635A1 (en) * | 2012-08-31 | 2014-03-06 | Sap Ag | In-order message processing with message-dependency handling |
CN103345427A (en) * | 2013-07-15 | 2013-10-09 | 四川公用信息产业有限责任公司 | View switching system and method based on Android message handling mechanism |
CN104239130A (en) * | 2014-08-15 | 2014-12-24 | 北京配天技术有限公司 | Control method of operating instruction response by human-computer interaction interface and terminal |
CN105893119A (en) * | 2016-03-31 | 2016-08-24 | 广东美的厨房电器制造有限公司 | Event handling method and device based on single-chip microcomputer system and single-chip microcomputer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017008762A1 (en) | Dual-card and dual-system terminal, incoming call processing method and device thereof, and storage medium | |
CN107786730A (en) | A kind of task management method and terminal | |
US9658748B2 (en) | System and method of managing states of computer screen and controlling mobile communication terminal | |
WO2016131261A1 (en) | Multipoint connection control method, apparatus, terminal, and multipoint bluetooth earphone | |
CN104216761B (en) | It is a kind of that the method for sharing equipment is used in the device that can run two kinds of operating system | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN107145383B (en) | Dual-system process management method and dual-system terminal | |
WO2021223672A1 (en) | Near field communication (nfc) method and apparatus, and electronic device | |
CN103595871A (en) | Incoming call forwarding method and terminals | |
CN104601818A (en) | Method and device for switching operating systems in communication process | |
CN101202964A (en) | Method and terminal for processing business | |
WO2016095386A1 (en) | Short message processing method and short message processing terminal | |
CN107395867A (en) | A kind of convenient call method of mobile terminal and system | |
CN103974216B (en) | A kind of information processing method and electronic equipment | |
CN110262721A (en) | Method for exhibiting data and device, electronic equipment | |
CN113965651A (en) | Outbound call processing method and device | |
CN107995645A (en) | Method for connecting network, mobile terminal and computer-readable recording medium | |
CN105843392A (en) | Screen control method and device of mobile terminal | |
CN107656790A (en) | A kind of switching method, storage medium and the mobile terminal at event handling interface | |
CN105025157B (en) | A kind of private contact hidden method and user terminal | |
KR20150088532A (en) | Apparatus for providing service during call and method for using the apparatus | |
CN104038618A (en) | Access control method and electronic equipment | |
CN103491586B (en) | Network switching control method and base station | |
CN103517301A (en) | Bluetooth communication processing method and device | |
EP3070913A1 (en) | Method and terminal for connection switchover for headphone jack adaptor device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180202 |