[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102402457A - Method for processing mobile phone application program interaction event - Google Patents

Method for processing mobile phone application program interaction event Download PDF

Info

Publication number
CN102402457A
CN102402457A CN2010102869441A CN201010286944A CN102402457A CN 102402457 A CN102402457 A CN 102402457A CN 2010102869441 A CN2010102869441 A CN 2010102869441A CN 201010286944 A CN201010286944 A CN 201010286944A CN 102402457 A CN102402457 A CN 102402457A
Authority
CN
China
Prior art keywords
application program
priority
mobile phone
application
alternative events
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
Application number
CN2010102869441A
Other languages
Chinese (zh)
Inventor
刘美红
邱真勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN2010102869441A priority Critical patent/CN102402457A/en
Publication of CN102402457A publication Critical patent/CN102402457A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method for processing an interactive event of a mobile phone application program, which comprises the following steps: s1Define each application programA callback function of the sequence, including a start, resume, pause, or exit callback function; s2The application program calls a registration interface to register the relevant information of the application program to the management center, wherein the relevant information comprises an ID number, priority and a callback function of starting, recovering, suspending or quitting; s3When the interactive event comes, the application program calls an operation interface provided by the management center, and the input parameters of the interface comprise the ID number, the scheduling method or the additional parameters of the application program; s4And calling an exit interface provided by the management center when the application program exits. By adopting the invention, all the interactive events are managed uniformly, no interactive process exists between the application programs, the interactive events are uniformly scheduled by the interactive event management center, and the modules are hardly coupled. And moreover, the application program is very convenient to cut and transplant.

Description

The disposal route of application program of mobile phone alternative events
Technical field
The present invention relates to mobile phone upper application software alternative events processing mode, particularly relate to a kind of disposal route of the application program of mobile phone alternative events based on priority.
Background technology
In use there are various alternative events in the mobile phone upper application module, and for example alarm clock event comes when the user plays MP3 needs to suspend to play MP3 this moment, treats that recovering MP3 after the alarm clock processing finishes plays.As shown in Figure 1; APP represents application program among the figure, and the mobile phone upper application module based on some cell phone platform (such as the STE platform, the cell phone platform of ST-Errison company exploitation) adopts resume module alternative events separately at present; When for example WAP PUSH message arrives; In message processing procedure, will judge the current phone state,, just point out with the mode of vibration if the user converses.The api interface (application programming interfaces) that each module all need be called correlation module decides the alternative events treatment scheme.The degree of coupling between module and the module is too big like this, moreover, increases a kind of alternative events module at every turn, and all modules all need be changed treatment scheme, and code redundancy is serious, brings great inconvenience to system transplantation and function expansion.
Summary of the invention
The technical matters that the present invention will solve is that exchange method code redundancy of the prior art is serious, the defective of system transplantation property difference in order to overcome, and a kind of disposal route of the application program of mobile phone alternative events based on priority is provided.
The present invention solves above-mentioned technical matters through following technical proposals:
A kind of disposal route of application program of mobile phone alternative events, its characteristics are that it may further comprise the steps:
S 1, define the call back function of each application program, comprise startup, recover, suspend or withdraw from call back function;
S 2, the application call registration interface is to the relevant information of administrative center's registrer application, comprise ID number, priority, and start, recover, suspend or withdraw from call back function;
S 3, when alternative events arrive, the runnable interface that application call administrative center provides, interface input parameter comprise ID number of application program, dispatching method or additional parameter;
S 4, call the interface that withdraws from that administrative center provides when application program withdraws from.
Preferably; Said administrative center is used for realizing and safeguarding an application program chained list; Each node comprises the priority of each application program, ID number unique, processing function in the chained list, also is used for simultaneously registration being provided, moving, inquiring about and withdrawing from interface to application program.
Preferably, step S 3In, when alternative events arrived, whole application program chained list was searched by administrative center, and called different call back functions according to the priority of each application program.
Preferably, if the application program of same priority just adopts late comer's service earlier or first person that has come elder generation method of service to handle.
Positive progressive effect of the present invention is: the present invention adopts based on priority and LFS (late comer serves earlier) algorithm or serves algorithm first earlier, can effectively improve the problems referred to above.All alternative events unified managements have no reciprocal process between the application program, they all are to dispatch by alternative events administrative center is unified, almost not coupling between module and the module.If increase an application program (alternative events), only need this application program to get final product to information such as administrative center's registered priority, processing functions, do not need other module to revise any code.Application clipping and transplant very convenient like this.
Description of drawings
Fig. 1 is the procedure chart of traditional application program of mobile phone interaction process.
Fig. 2 is the process flow figure of application program of mobile phone alternative events of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to specify technical scheme of the present invention.
As shown in Figure 2; General thought of the present invention is that the interactive maintenance center processing is given in the alternative events unification between the mobile phone upper application software (such as SMS, call function); Each application module is specified unique priority; If same priority use just adopt LFS (late comer serves earlier) mode or first service earlier handle, when applications (such as note, conversation etc.) or incident (refer to carry out, such as plug charger etc.) arrival than action faster; Whole applications active chained list is searched by administrative center, and calls different call back functions according to priority.These handle function in the software initialization process, are existed to administrative center's registration by application program.
By way of example, be 5 such as the priority of short message function, function of multimedia message priority also is 5; Phone functions priority is 10, then as user during just at message editor, when having multimedia message to arrive; Because both priority is identical, then adopt the LFS mode, collect multimedia message earlier; Suspend the short message editor, wait and collected multimedia message and recover the short message editor afterwards again.And when phone inserts,, then preferentially use call function because priority is higher than the priority of short message function, recover short breath editor after finishing again.
As shown in table 1, in the specific implementation, an application program chained list need realized and safeguard in application program interactive maintenance center, and each node comprises priority, unique ID number, handles function (starting, suspend, recover, withdraw from four functions) in the chained list.Administrative center also need provide interfaces such as registration, operation, inquiry to application program simultaneously.
Table 1
ID number
Priority
Handle call back function
Application program uses this interactive maintenance mode implementation step following:
1, each application program realizes call back function, is comprised information such as UI, GUI, operation flow such as interrupt some field datas that need preserve when suspending when application program.The on-the-spot recovery of some that need during application recovery moved.Withdraw from function and mainly accomplish operations such as the release ratio such as the internal memory of some public resources discharge, pass file.Start function and mainly accomplish the module initialization operation such as the read-write of global variable initialize, file etc.
2, application call registration interface is registered relevant information to administrative center: ID number, priority, startup, recovery, suspend, withdraw from call back function.
3, APP (application program) runnable interface that application call administrative center provides when alternative events arrive, interface input parameter comprise application program ID number, dispatching method (whether adopting priority), additional parameter etc.The whether employing priority here is in other words when program a is moving; Program b arrives; If the priority of program b is higher than program a,, let program b operation if adopt priority then program a this moment needs to suspend; If but the dispatching method in the interface input parameter then also keeps program a to continue operation for not adopting priority.And additional parameter mainly is the expansion of function of application, can utilize additional parameter to pass the parameter incidental information and get in the system that is moving.
The APP that calling administrative center when 4, application program withdraws from provides withdraws from interface.
Come then when alternative events, whether suspend current application program, how to preserve, recover all interaction process processes such as scene and all transfer to administrative center and handle, application program need be concerned about any interaction process details.
Though more than described embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited appended claims.Those skilled in the art can make numerous variations or modification to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.

Claims (4)

1. the disposal route of application program of mobile phone alternative events is characterized in that, it may further comprise the steps:
S 1, define the call back function of each application program, comprise startup, recover, suspend or withdraw from call back function;
S 2, the application call registration interface is to the relevant information of administrative center's registrer application, comprise ID number, priority, and start, recover, suspend or withdraw from call back function;
S 3, when alternative events arrive, the runnable interface that application call administrative center provides, interface input parameter comprise ID number of application program, dispatching method or additional parameter;
S 4, call the interface that withdraws from that administrative center provides when application program withdraws from.
2. the disposal route of application program of mobile phone alternative events as claimed in claim 1; It is characterized in that; Said administrative center is used for realizing and safeguarding an application program chained list; Each node comprises the priority of each application program, ID number unique, processing function in the chained list, also is used for simultaneously registration being provided, moving, inquiring about and withdrawing from interface to application program.
3. the disposal route of application program of mobile phone alternative events as claimed in claim 1 is characterized in that, step S 3In, when alternative events arrived, whole application program chained list was searched by administrative center, and called different call back functions according to the priority of each application program.
4. the disposal route of application program of mobile phone alternative events as claimed in claim 2 is characterized in that, if the application program of same priority just adopts late comer's service earlier or first person that has come elder generation method of service to handle.
CN2010102869441A 2010-09-17 2010-09-17 Method for processing mobile phone application program interaction event Pending CN102402457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102869441A CN102402457A (en) 2010-09-17 2010-09-17 Method for processing mobile phone application program interaction event

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102869441A CN102402457A (en) 2010-09-17 2010-09-17 Method for processing mobile phone application program interaction event

Publications (1)

Publication Number Publication Date
CN102402457A true CN102402457A (en) 2012-04-04

Family

ID=45884688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102869441A Pending CN102402457A (en) 2010-09-17 2010-09-17 Method for processing mobile phone application program interaction event

Country Status (1)

Country Link
CN (1) CN102402457A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383844A (en) * 2012-05-04 2013-11-06 盛乐信息技术(上海)有限公司 Voice synthesis method and system
CN103853478A (en) * 2012-12-05 2014-06-11 博雅网络游戏开发(深圳)有限公司 Interaction method and interaction system
CN103888619A (en) * 2014-04-16 2014-06-25 青岛海信电子设备股份有限公司 Message processing method and system thereof
CN103995752A (en) * 2014-06-16 2014-08-20 上海斐讯数据通信技术有限公司 Intermodule notification callback method and module interaction structure
CN107402769A (en) * 2017-08-09 2017-11-28 郑州云海信息技术有限公司 A kind of method and system of module information interaction
CN107515793A (en) * 2017-08-22 2017-12-26 四川长虹电器股份有限公司 A kind of module communication means for supporting message mechanism
CN108108170A (en) * 2018-01-04 2018-06-01 武汉斗鱼网络科技有限公司 A kind of decoupling method and system of component

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5974541A (en) * 1997-07-22 1999-10-26 National Instruments Corporation GPIB system and method which provides asynchronous event notification
CN1512370A (en) * 2002-12-31 2004-07-14 ����̩ƽ User self-defining event mechanism based on structure
CN1571483A (en) * 2004-05-09 2005-01-26 上海高清数字技术创新中心 A method for improving event transmission and processing in digital television receiving equipment
CN1635781A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for uniform processing of digital television receiver middleware messages
US20070204235A1 (en) * 2006-02-06 2007-08-30 Samsung Electronics Co., Ltd. Method for any ticker while the user is in any application session in a mobile communication device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5974541A (en) * 1997-07-22 1999-10-26 National Instruments Corporation GPIB system and method which provides asynchronous event notification
CN1512370A (en) * 2002-12-31 2004-07-14 ����̩ƽ User self-defining event mechanism based on structure
CN1635781A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for uniform processing of digital television receiver middleware messages
CN1571483A (en) * 2004-05-09 2005-01-26 上海高清数字技术创新中心 A method for improving event transmission and processing in digital television receiving equipment
US20070204235A1 (en) * 2006-02-06 2007-08-30 Samsung Electronics Co., Ltd. Method for any ticker while the user is in any application session in a mobile communication device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FRANK DABEK等: "Event-driven Programming for Robust Software", 《EW 10 PROCEEDINGS OF THE 10TH WORKSHOP ON ACM SIGOPS EUROPEAN WORKSHOP》 *
王铬: "回调函数在软件设计中的应用", 《河南教育学院学报(自然科学版)》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383844A (en) * 2012-05-04 2013-11-06 盛乐信息技术(上海)有限公司 Voice synthesis method and system
CN103383844B (en) * 2012-05-04 2019-01-01 上海果壳电子有限公司 Phoneme synthesizing method and system
CN103853478A (en) * 2012-12-05 2014-06-11 博雅网络游戏开发(深圳)有限公司 Interaction method and interaction system
CN103888619A (en) * 2014-04-16 2014-06-25 青岛海信电子设备股份有限公司 Message processing method and system thereof
CN103888619B (en) * 2014-04-16 2016-03-23 青岛海信电子设备股份有限公司 A kind of message treatment method and system thereof
CN103995752A (en) * 2014-06-16 2014-08-20 上海斐讯数据通信技术有限公司 Intermodule notification callback method and module interaction structure
CN107402769A (en) * 2017-08-09 2017-11-28 郑州云海信息技术有限公司 A kind of method and system of module information interaction
CN107515793A (en) * 2017-08-22 2017-12-26 四川长虹电器股份有限公司 A kind of module communication means for supporting message mechanism
CN108108170A (en) * 2018-01-04 2018-06-01 武汉斗鱼网络科技有限公司 A kind of decoupling method and system of component
CN108108170B (en) * 2018-01-04 2021-04-27 武汉斗鱼网络科技有限公司 Decoupling method and system of assembly

Similar Documents

Publication Publication Date Title
CN102402457A (en) Method for processing mobile phone application program interaction event
CN103176842B (en) background process management method and mobile terminal thereof
CN102866908B (en) Method for cleaning Android background applications and services
CN105677477B (en) Method and device for optimizing application program resources and electronic equipment
CN101772212B (en) Method and device for carrying out unified management on multiple applications on mobile terminal
CN102455933B (en) Method for increasing multi-tasking efficiency through thread management
CN101604264B (en) Task scheduling method and system for supercomputer
CN102981906A (en) Application program background process management method and device
CN103140831A (en) System and method of executing threads at a processor
IL182824A0 (en) Method for managing resources in a platform for the telecommunication service and/or network management, corresponding platform and computer program product thereof
CN103309738A (en) User job scheduling method and device
CN102279888A (en) Method and system for scheduling tasks
CN103793275A (en) System and processing method for achieving load balance
CN103092866B (en) Data monitoring method and supervising device
CN106484882A (en) A kind of management method of database connection pool and device
CN102207890A (en) Task information processing method and scheduling control processing device
CN102810184A (en) Method and device for dynamically executing workflow and enterprise system
CN102662650A (en) Implementation method and system of flow engine based on dynamic business
CN103455355A (en) Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment
CN102455932B (en) Serial execution method, device and system for task instances
CN109802995A (en) Information push method, device, equipment and storage medium
CN105446812A (en) Multitask scheduling configuration method
CN102004665B (en) Task concurrent processing method in workflow system
CN101841490A (en) Method and system for releasing shared information in instant communication system
CN103713946A (en) Operating instruction dispatching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20120404

RJ01 Rejection of invention patent application after publication