CN103677980A - System and method for terminating program in mobile terminal - Google Patents

System and method for terminating program in mobile terminal Download PDF

Info

Publication number
CN103677980A
CN103677980A CN201210320009.1A CN201210320009A CN103677980A CN 103677980 A CN103677980 A CN 103677980A CN 201210320009 A CN201210320009 A CN 201210320009A CN 103677980 A CN103677980 A CN 103677980A
Authority
CN
China
Prior art keywords
user interface
interface program
program
destination object
mobile terminal
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
CN201210320009.1A
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.)
Inventec Pudong Technology Corp
Inventec Corp
Original Assignee
Inventec Pudong Technology Corp
Inventec Corp
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 Inventec Pudong Technology Corp, Inventec Corp filed Critical Inventec Pudong Technology Corp
Priority to CN201210320009.1A priority Critical patent/CN103677980A/en
Publication of CN103677980A publication Critical patent/CN103677980A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a system and method for terminating a program in a mobile terminal. According to the system and method for terminating the program in the mobile terminal, by means of the technological method that a target object is set when a first user interface program in an application program is terminated and a second user interface program is terminated when the second user interface program in the application program judges that the target object is set, all sub-windows of the application program can be closed in the true sense through the sub-windows, and the technical effect that resources occupied by the program needing to be terminated are reduced is achieved.

Description

The system of termination routine and method thereof in mobile terminal
Technical field
The present invention relates to a kind of program process control system and method thereof, relate in particular to system and the method thereof of termination routine in a kind of mobile terminal.
Background technology
User interface (User Interface, UI), is between computer hardware and software and user, to carry out the medium of message exchange, and the field of all participation mankind and mechanical information interchange all exists user interface.User interface makes user go to rate easily and effectively operating computer software and hardware to reach two-way interaction, completes the desired work completing by computer.Between user and computer hardware and software, generally with restricted natural language, carry out interaction, but universal along with Windows, current user interface is that the mode with graphic user interface (Graphics User Interface, GUI) presents mostly.
Graphic user interface is used the mode of figure, helps user to computer, to send instruction easily, start-up operation, and the result of operation is shown to user with graphics mode.Graphic user interface is simple to operate, and the user who has saved use character user interface must remember the trouble of various command.
The operating system of digital electronic goods presents with the interface of windowing conventionally at present, each application program can show a main viewfinder after execution, and user can operate to open sub-window in main viewfinder, when needed, sub-window can also be opened sub-window, by that analogy.
At present, after opening multilayer sub-window, if the main viewfinder that direct control is opened is at first closed application program or is closed the sub-window of all unlatchings, tend to cause the parton form of follow-up unlatching not finish and occupying system resources (resource), therefore, if want certain sub-window of closing application program or closing all unlatchings, often need sequentially from the sub-window of finally opening, to start closeall sub-window one by one, for example, in the operating system of part, need repeatedly press (back) key that falls back, cause user's inconvenience.
In sum, since known prior art is medium-term and long-term, exist all sub-windows of cannot be easily really closing application program by sub-window to cause the problem of resource occupation always, be therefore necessary to propose improved technological means, solve this problem.
Summary of the invention
Because prior art exists, cannot really close by sub-window the problem of all sub-windows of application program, the present invention discloses system and the method thereof of termination routine in a kind of mobile terminal then, wherein:
The system of termination routine in the disclosed mobile terminal of the present invention, is applied to, in application program, at least comprise: destination object (Object); First user interface program (User Interface Program), in order to when first user interface program finishes, sets (set) destination object; The second user interface program, in order to Presentation Function interface, function interface comprises triggering first user interface program and starts the particular event of carrying out, the second user interface program and first user interface program are performed simultaneously, and when judging that destination object is set, finish the second user interface program.
The method of termination routine in the disclosed mobile terminal of the present invention, be applied in application program, application program has been moved first user interface program and the second user interface program simultaneously, first user interface program is after the particular event in the shown function interface of the second user interface program is triggered, to start to carry out, and its step at least comprises: destination object is provided in application program; First user interface program Presentation Function interface; When first user interface program finishes, target setting object; When the second user interface program judgement destination object is set, finish the second user interface program.
The disclosed System and method for of the present invention as above, and when the difference between prior art is that the present invention finishes by the first user interface program in application program, target setting object, when the second user interface program judgement destination object in application program is set, finish the second user interface program, solve thus the existing problem of prior art, and can reach the technique effect that reduces resource occupation.
Accompanying drawing explanation
Figure 1A is the system architecture diagram of termination routine in mobile terminal of the present invention.
Figure 1B is the system architecture diagram of termination routine in another kind of mobile terminal of the present invention.
Fig. 2 A is the method flow diagram of termination routine in mobile terminal of the present invention.
Fig. 2 B is the addition method process flow diagram of of the present invention reading (get) destination object.
Critical piece Reference numeral
100 application programs
110 destination objects
120 first user interface programs
130 second user interface programs
Step 201 provides destination object in application program
Step 210 first user interface program Presentation Function interface
Step 220 when first user interface program finishes, target setting object
Step 230 the second user interface program, when displaying contents, reads destination object
Step 240 the second user interface program judges whether destination object is set
When step 250 the second user interface program judgement destination object is set, finish the second user interface program
Step 290 the second user interface program is normally carried out
Embodiment
Below with reference to drawings and Examples, describe feature of the present invention and embodiment in detail, content is enough to make those skilled in the art can fully understand easily the applied technological means of technical solution problem of the present invention and implement according to this, realizes thus the attainable technique effect of the present invention.
The present invention is applied in and is executed in the application program that can take device, when application program is carried out a plurality of user interface program simultaneously, if certain user interface program in application program is moved to end, the user interface program that is moved to end can be initiatively or passive other user interface programs of notifying, other user interface programs that need to finish are also finished in the lump, avoided user interface program should finish but not finish and taken resource.
The user interface program that the present invention mentions (comprising first user interface program and the second user interface program) can provide the function interface with user interaction, for example, and " Activity " object in some program language etc.
Following elder generation illustrates System Operation of the present invention with the system architecture diagram of termination routine in Figure 1A mobile terminal of the present invention.As shown in Figure 1A, system of the present invention contains destination object 110, first user interface program 120 and the second user interface program 130.
Destination object 110 is responsible for record and whether is finished all second user interface programs 130 relevant to first user interface program 120, and if so, destination object 110 can be set, and if not, destination object 110 is not set.
In the embodiment of part, destination object 110 can be the global variable (global variable) in application program 100, when destination object 110 is set, represent that destination object 110 is for 0(is generally 1), when destination object 110 is not set, destination object 110 is generally 0, but the present invention is not as limit.
In addition, in the embodiment of part, all user interface programs of application program 100 are all relevant to other user interface program equally, but the present invention is not as limit.
First user interface program 120 is responsible for Presentation Function interface, and the shown function interface of first user interface program 120 at least comprises first button (button) of end application 100.In the embodiment of part, the shown function interface of first user interface program 120 can also comprise the second button that finishes first user interface program 120, but the present invention is not as limit.
First user interface program 120 is when finishing, and namely first user interface program 120 can will finish in application program 100, or in the time need to finishing all the second relevant user interface programs 130, target setting object 110.
The second same Presentation Function interface of being responsible for of user interface program 130, the shown function interface of the second user interface program 130 at least comprises triggering first user interface program 120 and starts the particular event of carrying out, for example, click event of the object such as the button in function interface or check box (checkbox) etc.
Generally speaking, the shown function interface of first user interface program 120 is positioned at the upper strata of the shown function interface of the second user interface program 130, that is to say, when first user interface program 120 starts to carry out and during Presentation Function interface, the shown function interface of first user interface program 120 can be obtained focus (focus).
The second user interface program 130 is responsible for, when judging destination object 110 and be set, finishing the second user interface program 130.In the embodiment of part, the second user interface program 130 is in " onStart " method, to read the value of destination object 110, judges thus whether destination object 110 is set.
Then with the first embodiment, explain orally operation system of the present invention and method, and please refer to the method flow diagram of termination routine in Fig. 2 A mobile terminal of the present invention.
In the present embodiment, suppose to be executed in the application program 100 that can take on device has three user interface programs to be performed simultaneously, in three user interface programs, the first button that has a shown function interface of user interface program to comprise end application 100.In the present embodiment, the user interface program of supposing to show the first button of end application 100 is first user interface program of the present invention, two other user interface program is the second user interface program of the present invention, and first user interface program starts while can the particular event in the shown function interface of the second user interface program being triggered (trigger) to carry out, in addition, also suppose that the shown function interface of first user interface program is on the upper strata of the shown function interface of two other the second user interface program, make user can only operate the shown function interface of first user interface program, until user closes the shown function interface of first user interface program, till namely finishing first user interface program.
The shown function interface of first user interface program, except the first button that comprises end application 100, can also comprise the second button that finishes first user interface program.User as need end application 100 and application program 100 and comprised all user interface programs time, can click the first button; If user only need close the function interface that the current the superiors show, can click the second button, like this, only there is first user interface program to finish, the function interface that the superiors are shown is also closed, but two other second user interface program that application program 100 and application program 100 comprise still can keep normal operation.
First, application program 100 can provide a destination object 110(step 201).In the present embodiment, hypothetical target object 110 is one and is pre-configured in application program 100, and data type is the global variable of boolean (Boolean) value.
Then, when the first user interface program 120 in application program 100 is triggered and starts to carry out, can show the function interface (step 210) providing with user interactions in the superiors, if shown the first button of first user interface program 120 is when clicked, first user interface program 120 can be carried out " onDestroy " method finishing, in " onDestroy " of first user interface program 120 method, can target setting object 110 be " true " (step 220).
After first user interface program 120 finishes, one of them second user interface program 130 can be restarted (restart), therefore, as shown in Figure 2 B, this second user interface program 130 can be carried out " onStart " method of the content in Presentation Function interface, in " onStart " of the second user interface program 130 method, can read destination object 110, namely read pre-configured global variable (step 230) in application program 100, and judge whether destination object 110 is set (step 240).If not, the second user interface program 130 can normally be carried out (step 290), namely can carry out " onResume " method.
In the present embodiment, because destination object 110 has been set to " true ", the second user interface program 130 can be set by judgement destination object 110, therefore, the second user interface program 130 can be carried out " onDestroy " method finishing, and finishes thus the second user interface program 130(step 250).
In the present embodiment, no matter whether " onDestroy " method of the second user interface program 130 has target setting object 110 for " true ", because destination object 110 is set as " true " by first user interface program, therefore, another second user interface program 130, when being restarted, also can process described above finish to carry out.Like this, by the present invention, before application program 100 finishes, all user interface programs of application program 100 all can finish really, avoid the waste of resource.
Below with the system architecture diagram of termination routine in Figure 1B another kind of mobile terminal of the present invention, System Operation of the present invention is described again.As shown in Figure 1B, system of the present invention contains destination object 110, first user interface program 120 and the second user interface program 130 equally, and first user interface program 120 and the second user interface program 130 equally all can Presentation Function interfaces.Different from Figure 1A, in Figure 1B, not only one of destination object 110, but have one in each second user interface program 130, but whether the present invention does not comprise destination object 110 to first user interface program 120, do special restriction.
Destination object 110 is responsible for record and whether is finished all second user interface programs relevant to first user interface program 120.In the embodiment of part, destination object 110 can be the broadcast object of registering in each user interface program, but the present invention is not as limit.
First user interface program 120 equally can be when finishing, target setting object 110.In the embodiment of part, first user interface program 120 can be in carrying out " onDestory " method finishing, and to send the mode target setting object 110 of broadcast, but the present invention is not as limit.
Generally speaking, first user interface program 120 can be in the time need to finishing all the second relevant user interface programs 130, target setting object 110.In the embodiment of part, second user interface program 130 relevant to first user interface program 120 is for opening the second user interface program 130 of this first user interface program 120, therefore, first user interface program 120 is positioned at the second user interface program 130 upper stratas, that is to say, first user interface program 120 is obtained focus, but the present invention is not as limit.
The second user interface program 130 is responsible for, when judging destination object 110 and be set, finishing the second user interface program 130.In the embodiment of part, the second user interface program 130 is that while receiving the broadcast of the target setting object 110 that first user interface program 120 sends in receiving " onReceiver " method of information, judgement destination object 110 is set.In addition, the second user interface program 130 can also namely finish before the second user interface program 130 when judgement destination object 110 is set, and chartered destination object 110 is nullified to (unregister).
Then with the second embodiment, explain orally operation system of the present invention and method, please refer to equally the method flow diagram of termination routine in Fig. 2 A mobile terminal of the present invention.
In the present embodiment, the application program 100 that can take on device if be executed in comprises five user interface programs, and in these five user interface programs, each user interface program is after the particular event in the shown function interface of another user interface program is triggered, to start to carry out, like this, five user interface programs will be performed simultaneously.Suppose that the user interface program that can finally be performed is first user interface program of the present invention, four user interface programs are in addition the second user interface program of the present invention.
First, each second user interface program 130 in application program 100 is when carrying out " onCreate " method of resource distribution, and registered in advance (register) destination object 110, allows application program 100 that destination object 110(step 201 is provided thus).In the present embodiment, hypothetical target object 110 is broadcast object.
If the particular event in the shown function interface of the second user interface program 130 in application program 100 is triggered, while making first user interface program 120 in application program 100 start to carry out, first user interface program 120 can be at the superiors' Presentation Function interface (step 210).
Then, when the first user interface program 120 in application program 100 finishes, first user interface program 120 can be carried out " onDestroy " method finishing, in " onDestroy " of first user interface program 120 method, that can transmit set broadcast object (destination object 110) is broadcast to the second all user interface programs 130, thus target setting object 110(step 220).
When the second user interface program 130 in application program 100 receives the broadcast of the target setting object 110 that first user interface program 120 transmits, the second user interface program 130 can be set by judgement destination object 110, therefore, can finish the second user interface program 130(step 250), wherein, the second user interface program 130 can also be nullified destination object 110 before end.Like this, by the present invention, all second user interface programs 130 relevant to first user interface program 120 in application program 100 all can be because of the broadcast that receives first user interface program 120 and transmit when finishing, and then finish, all the second user interface programs 130 relevant to first user interface program 120 in application program 100 all can be finished really, avoid the waste of resource.
In sum, difference between known the present invention and prior art is to have while finishing by the first user interface program in application program, target setting object, when the second user interface program judgement destination object in application program is set, finish the technological means of the second user interface program, by this technological means, can solve that prior art is existing cannot close really by sub-window the problem of all sub-windows of application program, and then reach and reduce the technique effect that program that resource should be finished takies.
Moreover the method for termination routine in mobile terminal of the present invention, can be implemented in the combination of hardware, software or hardware and software, also can in computer system, with centralized system, realize or intersperse among with different elements the dispersing mode realization of some interconnected computer systems.
Although the disclosed embodiment of the present invention as above, yet described content is not in order to direct restriction scope of patent protection of the present invention.Any those skilled in the art are not departing under the prerequisite of the disclosed spirit and scope of the present invention, to doing some in the formal and details of enforcement of the present invention, change retouching, all belong to scope of patent protection of the present invention.Scope of patent protection of the present invention, still must be as the criterion with the content that appending claims was limited.

Claims (10)

1. the method for termination routine in a mobile terminal, it is characterized in that, be applied in application program, this application program has been moved first user interface program and at least one the second user interface program simultaneously, this first user interface program is after the particular event in the shown function interface of this second user interface program is triggered, to start to carry out, and the method at least comprises the following step:
In this application program, provide destination object;
This first user interface program Presentation Function interface;
When this first user interface program finishes, set this destination object; And
This second user interface program judges when this destination object is set, and finishes this second user interface program.
2. the method for termination routine in mobile terminal as claimed in claim 1, it is characterized in that, this second user interface program in this application program judges that the step that this destination object is set also comprises this second user interface program when restarting Presentation Function interface, read pre-configured global variable, judge thus the step whether this destination object is set.
3. the method for termination routine in mobile terminal as claimed in claim 1, it is characterized in that, this second user interface program in this application program judges that the step that this destination object is set is that the broadcast message whether this second user interface program foundation receives the broadcast object of setting registered in advance judges whether this destination object is set, if so, this second user interface program judges that this destination object is set.
4. the method for termination routine in mobile terminal as claimed in claim 1, it is characterized in that, the step at this first user interface program Presentation Function interface comprises and shows the first button that finishes this application program, this first user interface program and these the second user interface programs, and shows the second button that finishes this first user interface program.
5. the method for termination routine in mobile terminal as claimed in claim 1, is characterized in that, the method, when this second user interface program judges the step that this destination object is set, also comprises the step that this second user interface program is nullified this destination object.
6. a system for termination routine in mobile terminal, is characterized in that, is applied in application program, and this system at least comprises:
Destination object;
First user interface program, in order to when this first user interface program finishes, sets this destination object; And
At least one second user interface program, in order to Presentation Function interface, this function interface comprises this first user interface program of triggering and starts the particular event of carrying out, this second user interface program and this first user interface program are performed simultaneously, and when judging that this destination object is set, finish this second user interface program.
7. the system of termination routine in mobile terminal as claimed in claim 6, it is characterized in that, this destination object is pre-configured global variable, and this second user interface program is also in order to when the displaying contents, read this global variable, judge thus whether this destination object is set.
8. the system of termination routine in mobile terminal as claimed in claim 6, it is characterized in that, this destination object is the broadcast object of registered in advance, and this second user interface program is when receiving the broadcast message of setting this broadcast object, judges that this destination object is set.
9. the system of termination routine in mobile terminal as claimed in claim 6, it is characterized in that, this first user interface program is also in order to show another function interface, the shown function interface of this first user interface program comprises the first button that finishes this application program, this first user interface program and these the second user interface programs, and finishes the second button of this first user interface program.
10. the system of termination routine in mobile terminal as claimed in claim 6, is characterized in that, this second user interface program also in order to nullify this destination object before end.
CN201210320009.1A 2012-08-31 2012-08-31 System and method for terminating program in mobile terminal Pending CN103677980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210320009.1A CN103677980A (en) 2012-08-31 2012-08-31 System and method for terminating program in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210320009.1A CN103677980A (en) 2012-08-31 2012-08-31 System and method for terminating program in mobile terminal

Publications (1)

Publication Number Publication Date
CN103677980A true CN103677980A (en) 2014-03-26

Family

ID=50315637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210320009.1A Pending CN103677980A (en) 2012-08-31 2012-08-31 System and method for terminating program in mobile terminal

Country Status (1)

Country Link
CN (1) CN103677980A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1067456A2 (en) * 1999-07-07 2001-01-10 Sharp Kabushiki Kaisha Method of designing an interface for a real-time messaging system
CN1633639A (en) * 2002-02-15 2005-06-29 国际商业机器公司 Application window closure in response to event in parent window
CN101071370A (en) * 2006-05-11 2007-11-14 明基电通股份有限公司 Graphic user interface and its establishing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1067456A2 (en) * 1999-07-07 2001-01-10 Sharp Kabushiki Kaisha Method of designing an interface for a real-time messaging system
CN1633639A (en) * 2002-02-15 2005-06-29 国际商业机器公司 Application window closure in response to event in parent window
CN101071370A (en) * 2006-05-11 2007-11-14 明基电通股份有限公司 Graphic user interface and its establishing method

Similar Documents

Publication Publication Date Title
US11868586B2 (en) Floating window user interface display method and apparatus, device, and storage medium
US10140014B2 (en) Method and terminal for activating application based on handwriting input
US20220108311A1 (en) Application for creating real time smart contracts
CN104765522A (en) Chat window display control method and system
CN111080238A (en) Conference process control method, conference process control device, storage medium and electronic equipment
CN103812999B (en) Mobile terminal and message registration treating method and apparatus thereof
CN104679239B (en) A kind of terminal input method
JP6750124B2 (en) Terminal device, UI expansion method, and UI expansion program
CN108984255B (en) Remote assistance method and related equipment
CN107506200A (en) A kind of screen content switching method, terminal and computer-readable recording medium
CN110088719B (en) Display method of mobile equipment and mobile equipment
CN112988308A (en) Teaching display method and device, teaching all-in-one machine and storage medium
US20200073529A1 (en) Method, system, and device for interfacing with a component in a plurality of interaction modes
CN103729172A (en) System and method for preventing touch events from being intercepted so as to trigger multiple elements for execution
CN103677980A (en) System and method for terminating program in mobile terminal
CN106156667A (en) Open card method for writing data, Apparatus and system
CN107390981B (en) Global menu control method, device, equipment and storage medium
CN111915422A (en) Wind control model scheduling method and device, machine readable medium and equipment
CN111078112A (en) Terminal device control method and device, computer device and storage medium
US20240177092A1 (en) Visual presentation of workflow progress
JP2014532223A (en) Method and apparatus for enabling a first computer program to execute application logic of a second computer program, for interfacing the first computer program and the second computer program And apparatus for generating computer program code for the same, a computer program, and a software interface for enabling a first computer program to execute application logic of a second computer program For providing information (computer program interface)
US8839207B2 (en) Debugging extensible markup language
US11669215B2 (en) Computing device identifier retrieval
CN111045638B (en) Cursor control method and device, storage medium and terminal
US20210342854A1 (en) Virtual assisted agreement video recording

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140326