CN103257894A - Program management method and electronic terminal - Google Patents

Program management method and electronic terminal Download PDF

Info

Publication number
CN103257894A
CN103257894A CN2012100400804A CN201210040080A CN103257894A CN 103257894 A CN103257894 A CN 103257894A CN 2012100400804 A CN2012100400804 A CN 2012100400804A CN 201210040080 A CN201210040080 A CN 201210040080A CN 103257894 A CN103257894 A CN 103257894A
Authority
CN
China
Prior art keywords
application program
external components
state
information
service
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.)
Granted
Application number
CN2012100400804A
Other languages
Chinese (zh)
Other versions
CN103257894B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210040080.4A priority Critical patent/CN103257894B/en
Publication of CN103257894A publication Critical patent/CN103257894A/en
Application granted granted Critical
Publication of CN103257894B publication Critical patent/CN103257894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a program management method and an electronic terminal. The electronic terminal comprises a processor, a memory and at least one external part, and when a first application program is in a first state, processing resources of the processor and storage resources of the memory are occupied and a first external part is invoked to enable the same to be in a working state. The method includes: when the first application program is in the first state, recording first part information of the first external part invoked by the first application program; during the process that the application program switches from the first state into a second state, generating notifying information indicating that the first application program switches from the first state into the second state; and when the first application program is determined to be in the second state according to the notifying information, controlling the first external part to be in a nonworking state according to the first part information; wherein when the first application program is in the second state, the first application program does not occupy the processing resources of the processor and occupies the storage resources of the memory.

Description

A kind of method of supervisory routine and electric terminal
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method and electric terminal of supervisory routine.
Background technology
On at present a lot of electric terminals multitask system is installed all, that is to say and to move a plurality of programs, for example Android system simultaneously.In general, starting program of operation has the regular hour expense, and therefore in order to accelerate travelling speed, when withdrawing from a program, program does not really withdraw from, but has switched to the backstage, when reruning this program like this next time, and can very fast startup.So in the system a lot of background programs may be arranged.These background programs generally are in sleep state, generally do not occupy CPU (Central ProcessingUnit; Central processing unit).But a lot of background programs can be opened external unit, such as acceleration transducer, and GPS (Global Position System; GPS) etc., therefore very power consumption.Generally have only these background programs really to withdraw from Shi Caihui and turn off these external units.
In the prior art, in order to solve the problems of the technologies described above, the technical scheme that adopts is to kill some programs according to the importance of application program, being about to application program really withdraws from, but one can turn off the external unit relevant with these application programs even so, but program is withdrawed from, make when start this program next time more consuming time, and application program is when withdrawing from, can't preserve current state, so status information all can be lost when started next time, namely application program can not return to the state when withdrawing from last time.
The inventor finds that method of the prior art can not take into account power saving and save time in realizing process of the present invention, both can only get one.
Summary of the invention
The invention provides a kind of method and electric terminal of supervisory routine, can't take into account power saving and time-saving technical matters in order to what solve that method for managing application in the prior art exists.
One aspect of the present invention provides a kind of method of supervisory routine, being applied to one has in the electric terminal of multitask system, described electric terminal comprises processor, storer and at least one external components, the processing resource of when first application program is in first state, occupying described processor, occupying the storage resources of described storer and calling first external components makes described first external components in running order, described method comprises: when described first application program is in described first state, record first component information of described first external components that described first application program calls; When described first application program switches to the process of second state from described first state, produce an announcement information, described announcement information is used for described first application program of expression and switches to described second state from described first state; When determining that according to described announcement information described first application program is in described second state, control described first external components according to described first component information and be in off working state; Wherein, when described first application program was in described second state, described first application program was not occupied the processing resource of described processor, occupies the storage resources of described storer.
Preferably, control according to described first component information before described first external components is in off working state described, described method also comprises: judge that whether described first external components is by second application call; If not, then control described first external components and be in off working state.
Preferably, describedly judge that whether described first external components is by second application call, be specially: by second component information, whether confirm described first external components by described second application call, the information of described first external components that described second component information is called for described first application program that records when described second application program is in described first state.
Preferably, control according to described first component information before described first external components is in off working state described, described method also comprises: judge whether described first application program has the service of calling described first external components in operation; If not, then control described first external components and be in off working state.
Preferably, describedly judge whether described first application program has the service of calling described first external components in operation, be specially: by first information on services, confirm whether described first application program has the service of calling described first external components in operation, and described first information on services is the information of first service of the described first application program correspondence of record.
Preferably, control according to described first component information before described first external components is in off working state described, described method also comprises: judge that whether described first external components is by the service call of one second application program; If not, then control described first external components and be in off working state.
Preferably, describedly judge that whether described first external components is by the service call of one second application program, be specially: by first information on services, whether confirm described first external components by the service call of described second application program, described first information on services is the information of first service of the described second application program correspondence of record.
Preferably, control according to described first component information after described first external components is in off working state described, also record second component information that described first external components is in off working state.
Preferably, when described first application program switches to the process of described first state from described second state, produce another announcement information, described another announcement information is used for described first application program of expression and switches to described first state from described second state; Determine that according to described another announcement information described first application program is in described first state, it is in running order to control described first external components according to described second component information.
The present invention provides a kind of electric terminal on the other hand, has a multitask system, described electric terminal comprises: processor, when first application program is in first state, described first application program is occupied the processing resource of described processor, when described first application program was in second state, described first application program was not occupied the processing resource of described processor; Storer, when described first application program was in described first state or second state, described first application program was occupied the resource of described storer; First external components, when described first application program is in described first state, described first external components of described first application call, when described first application program was in described second state, described first external components was in off working state; First record cell is used for recording first component information of described first external components when described first application program is in first state; Control module is used for controlling described first external components according to described first component information and being in off working state when described first application program is in described second state.
Preferably, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge that whether described first external components is by second application call, if not, then control described first external components and be in off working state.
Preferably, described electric terminal also comprises second record cell, when being used for described second application program of record and being in described first state, the information of described first external components that described second application program is called, described second component information are used for confirming that whether described first external components is by described second application call.
Preferably, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge whether described first application program has the service of calling described first external components in operation, if not, then control described first external components and be in off working state.
Preferably, described electric terminal also comprises second record cell, first information on services that is used for first service of the described first application program correspondence of record, described first information on services are used for confirming whether described first application program has the service of calling described first external components in operation.
Preferably, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge that whether described first external components is by the service call of one second application program, if not, then control described first external components and be in off working state.
Preferably, described electric terminal also comprises second record cell, first information on services that is used for first service of the described second application program correspondence of record, described first information on services are used for confirming that whether described first external components is by the service call of described second application program.
Beneficial effect of the present invention is as follows:
One embodiment of the invention adopts records application program to call the situation of external components, when application program switches to the backstage from the foreground, just the external components of application call is closed, so can power saving, and application program still resides in the internal memory, does not withdraw from, so when start application program next time, can start soon, save the time simultaneously.
Further, judged whether when closing external components also in one embodiment of the invention that other application programs are at this external components of use, if words, just do not close external components, if not, just close external components, so can under the situation that does not influence user's use, turn off no external components, reach purpose of power saving, also do not influence the user and experience.Equally, can judge whether further also whether the service of this application program oneself calls this external components, can judge whether further that perhaps this external components is being called in the service of other programs, if words, just do not close external components, if not, just close external components.
Description of drawings
Fig. 1 is the functional block diagram of the electric terminal in one embodiment of the invention;
Fig. 2 is the method flow diagram of the supervisory routine in one embodiment of the invention;
Fig. 3 is the method flow diagram of the supervisory routine in another embodiment of the present invention.
Embodiment
First embodiment of the invention provides a kind of method of supervisory routine, and this method is applied on the electric terminal, and this electric terminal is mobile phone, panel computer or notebook computer etc. for example, and this electric terminal has multiple task operating system, for example the Android system.As shown in Figure 1, this electric terminal comprises processor 101, and when first application program was in first state, first application program was occupied the processing resource of processor 101, when first application program was in second state, first application program was not occupied the processing resource of processor 101; Storer 102, when first application program is in first state or second state, the resource of the first application program required storage 102; First external components 103, when first application program is in first state, first application call, first external components 103, when first application program was in second state, first external components 104 was in off working state; First record cell 104 is used for recording first component information of first external components 103 when first application program is in first state; Control module 105 is used for controlling first external components 103 according to first component information and being in off working state when first application program is in second state.
In the present embodiment, external components is only given an example with first external components 103, and in practice, external components can have multiple, also can have a plurality of.
For more detailed description the present invention, below will lift concrete example and set forth the present invention.
For example this electric terminal is mobile phone, multiple task operating system is the Android system, this moment, the user opened player, so the program of player correspondence is activated, namely be in first state, and player need call external components: loudspeaker, so this moment, first record cell, 104 meeting record player were called the component information of loudspeaker, for example, when calling loudspeaker, will call this interface of registerListerner of SpeakerManager, so whether records application program opens loudspeaker in this interface, for other external components, can handle according to this method equally.
After after a while, the user need use other application programs, and for example at this moment the user has opened the browser browsing page, and at this moment the interface of player is just invisible, namely represent player and switched to the running background of system from the foreground, namely switched to second state from first state.Because corresponding activity in interface in the Android system, so can utilize this function of ActivityManagerNative.getDefault () .registerActivityWatcher, register an activity watcher, it is interface monitor, when activity changes, activity watcher will produce an announcement information, according to this announcement information, knows namely whether application program has switched to the backstage from the foreground.
When determining that according to this announcement information player is in the backstage, control module 105 just calls the component information of loudspeaker according to the player of first record cell, 104 records, the control loudspeaker are in off working state, namely close loudspeaker, and this moment the player processing resource of not occupied processor 101, but the storage resources of required storage 102 still.Therefore, both can power saving, save the time of next startup player again, and kept the state of player.
Again for example, the user has started the screen rotation program, so the screen rotation program can call external components: and gravity sensor, but after the screen rotation program switches to the backstage from the foreground, just gravity sensor is closed, to reach purpose of power saving.
In a further embodiment, after control module 105 controls first external components 103 is in off working state, also record second component information that first external components 103 is in off working state, so when first application program switched to the foreground from the backstage again, it was in running order to control first external components 103 according to second component information again.So, can reach purpose of power saving, have can make when needing application program, application program can normally be moved.Continue to continue to use the example of front, for example, when the player program switched to the foreground from the backstage, the loudspeaker that just will be in off working state were opened, and make it in running order, and so the player program just can normally be moved.When for example the screen rotation program switches to the foreground from the backstage again, just gravity sensor is opened, made it in running order, make the screen rotation program normally to move.And no matter close external components or open external components again, do not need the participation of application program itself.
In addition, when first application program switches to first state from second state, also can produce another announcement information, be used for expression first application program and switch to first state from second state, namely first application program switches to the foreground from the backstage, and the production method of this announcement information and aforementioned announcement information is similar.
In another embodiment, electric terminal also comprises judging unit, is used for judging whether the second application call loudspeaker in addition before control module 105 is in off working state according to first component information control loudspeaker.For example the external components that calls of player is except loudspeaker, also has color lamp, LED light for example, when player was switched to the backstage, judging unit had just judged whether that other application programs are calling color lamp or loudspeaker, finds not have other application programs and do not calling color lamp after judging, but there is an application program calling loudspeaker, so at this moment control module 105 is just controlled color lamp and is in off working state, and for loudspeaker, then still keeps duty.So, can power saving not influencing the user again normally uses.
Further, electric terminal also comprises second record cell, when judging unit was in first state according to second application program of second recording unit records, the information of the second application call loudspeaker or color lamp or other external components confirmed whether second application program calls loudspeaker or color lamp.And the mode of second recording unit records is similar to first record cell 104.
In another embodiment, electric terminal also can comprise another judging unit, is used for judging whether first application program has the service of calling loudspeaker in operation before control module 105 is in off working state according to first component information control loudspeaker.For example the external components that calls of player is except loudspeaker, also has color lamp, LED light for example, when player was switched to the backstage, judging unit just judged that whether player also has service calling color lamp or loudspeaker, finds that after judging color lamp is not being called in service, but there is a service calling loudspeaker, so at this moment control module 105 is just controlled color lamp and is in off working state, and for loudspeaker, then still keeps duty.So, can power saving not influencing the user again normally uses.
Further, electric terminal also can comprise another record cell, and another judging unit confirms according to the information on services of first service of the first application program correspondence of another recording unit records whether first application program has the service of calling loudspeaker or color lamp in operation.In concrete the utilization, whether the information on services that can move from the getRunningService interface acquisition of ActivityManager has service in operation thereby obtain player.
In another embodiment, electric terminal also can comprise a judging unit again, is used for judging whether second application program has the service of calling loudspeaker in operation before control module 105 is in off working state according to first component information control loudspeaker.For example the external components that calls of player is except loudspeaker, also has color lamp, LED light for example, when player was switched to the backstage, a judging unit just judged that whether other application programs also have service calling color lamp or loudspeaker, find that after judging color lamp is not being called in service again, but there is a service calling loudspeaker, so at this moment control module 105 is just controlled color lamp and is in off working state, and for loudspeaker, then still keeps duty.So, can power saving not influencing the user again normally uses.
Further, electric terminal also can comprise a record cell again, and a judging unit confirms according to the information on services of first service of the second application program correspondence of a recording unit records more whether second application program has the service of calling loudspeaker or color lamp in operation again.In concrete the utilization, whether the information on services that can move from the getRunningService interface acquisition of ActivityManager has service in operation thereby obtain second application program.
More than each embodiment can implement separately, also can be in conjunction with enforcement, those skilled in the art can select according to actual needs.
Below will specifically set forth the method flow of supervisory routine of the present invention, and please refer to Fig. 2, Fig. 2 is the method flow diagram of the supervisory routine in the present embodiment.
As shown in Figure 2, this method comprises:
Step 201: when first application program is in first state, record first component information of first external components that first application program calls;
Step 202: when first application program switches to the process of second state from first state, produce an announcement information, announcement information is used for expression first application program and switches to second state from first state;
Step 203: when determining that according to announcement information first application program is in second state, control first external components according to first component information and be in off working state; Wherein, when first application program was in second state, first application program was not occupied the processing resource of processor, the storage resources of required storage.
Method for more detailed description supervisory routine of the present invention, lift concrete example below and come specific description, wherein electric terminal is example with the mobile phone, multiple task operating system is example with the Android system, in other embodiments, multiple task operating system also can be other system, and electric terminal also can be other electric terminals of supporting multiple task operating system.
For example, the user has opened player, so the program of player correspondence is activated, namely is in first state, and player need call external components: loudspeaker, so this moment, record player was called the component information of loudspeaker, for example, when calling loudspeaker, will call this interface of registerListemer of SpeakerManager, so whether records application program opens loudspeaker in this interface, for other external components, can handle according to this method equally.
After after a while, the user need use other application programs, and for example at this moment the user has opened the browser browsing page, and at this moment the interface of player is just invisible, namely represent player and switched to the running background of system from the foreground, namely switched to second state from first state.Because corresponding activity in interface in the Android system, so can utilize this function of ActivityManagerNative.getDefault () .registerActivityWatcher, register an activity watcher, it is interface monitor, when activity changes, activity watcher will produce an announcement information, according to this announcement information, knows namely whether application program has switched to the backstage from the foreground.
When determining that according to this announcement information player is in the backstage, just call the component information of loudspeaker according to the player of record, the control loudspeaker are in off working state, namely close loudspeaker, and this moment the player processing resource of not occupied processor 101, but the storage resources of required storage 102 still.Therefore, both can power saving, save the time of next startup player again, and kept the state of player.
Again for example, the user has started the screen rotation program, so the screen rotation program can call external components: and gravity sensor, but after the screen rotation program switches to the backstage from the foreground, just gravity sensor is closed, to reach purpose of power saving.
In a further embodiment, when control module is controlled after first external components 103 is in off working state, also record second component information that first external components is in off working state, so when first application program switched to the foreground from the backstage again, it was in running order to control first external components according to second component information again.So, can reach purpose of power saving, have can make when needing application program, application program can normally be moved.Continue to continue to use the example of front, for example, when the player program switched to the foreground from the backstage, the loudspeaker that just will be in off working state were opened, and make it in running order, and so the player program just can normally be moved.When for example the screen rotation program switches to the foreground from the backstage again, just gravity sensor is opened, made it in running order, make the screen rotation program normally to move.And no matter close external components or open external components again, do not need the participation of application program itself.
In addition, when first application program switches to first state from second state, also can produce another announcement information, be used for expression first application program and switch to first state from second state, namely first application program switches to the foreground from the backstage, and the production method of this announcement information and aforementioned announcement information is similar.
In another embodiment, provide the method for another kind of supervisory routine, please refer to Fig. 3, this method is the further optimization of step 203 among Fig. 2, and this method comprises:
Step 301: determine that according to announcement information first application program is in second state, namely controlling according to first component information before first external components is in off working state;
Step 302: judge that whether first external components is by second application call;
Step 303: if not, then control first external components and be in off working state.
Further, this method also comprises step 304, if namely the judged result of step 302 is when being, it is in running order then to control first external components.
Continue to continue to use aforesaid example, for example the external components that calls of player is except loudspeaker, also have color lamp, LED light for example is when player is switched to the backstage, just judged whether that other application programs are calling color lamp or loudspeaker, find that after judging other application programs are not being called color lamp, but have an application program calling loudspeaker, be in off working state so at this moment just control color lamp, and for loudspeaker, then still keep duty.So, can power saving not influencing the user again normally uses.
Further, judge in the step 302 that first external components whether by second application call, is specially:
For example by second component information, whether confirm first external components by second application call, the information of first external components that second component information is called for first application program that records when second application program is in first state.
In another embodiment, similar with previous embodiment, just be to judge whether first application program has the service of calling loudspeaker in operation in the step 302.For example the external components that calls of player is except loudspeaker, also has color lamp, LED light for example, when player is switched to the backstage, just judge that whether player also has service calling color lamp or loudspeaker, finds that after judging color lamp is not being called in service, but there is a service calling loudspeaker, be in off working state so at this moment just control color lamp, and for loudspeaker, then still keep duty.So, can power saving not influencing the user again normally uses.
Further, judge whether first application program has the service of calling first external components in operation, be specially: by first information on services, confirm whether first application program has the service of calling first external components in operation, and first information on services is the information of first service of the record first application program correspondence.In concrete the utilization, whether the information on services that can move from the getRunningService interface acquisition of ActivityManager has service in operation thereby obtain player.
In another embodiment, be to judge that whether first external components is by the service call of one second application program in the step 302.For example the external components that calls of player is except loudspeaker, also has color lamp, LED light for example, when player is switched to the backstage, just judge that whether other application programs also have service calling color lamp or loudspeaker, find that after judging color lamp is not being called in service, but there is a service calling loudspeaker, be in off working state so at this moment just control color lamp, and for loudspeaker, then still keep duty.So, can power saving not influencing the user again normally uses.
Further, judge that whether first external components is by the service call of one second application program, be specially: by first information on services, whether confirm first external components by the service call of second application program, first information on services is the information of first service of the record second application program correspondence.In concrete the utilization, whether the information on services that can move from the getRunningService interface acquisition of ActivityManager has service in operation thereby obtain second application program.
The various embodiments described above can be implemented separately, the enforcement of also can interosculating, and those skilled in the art can select according to actual needs.
One embodiment of the invention adopts records application program to call the situation of external components, when application program switches to the backstage from the foreground, just the external components of application call is closed, so can power saving, and application program still resides in the internal memory, does not withdraw from, so when start application program next time, can start soon, save the time simultaneously.
Further, judged whether when closing external components also in one embodiment of the invention that other application programs are at this external components of use, if words, just do not close external components, if not, just close external components, so can under the situation that does not influence user's use, turn off no external components, reach purpose of power saving, also do not influence the user and experience.Equally, can judge whether further also whether the service of this application program oneself calls this external components, can judge whether further that perhaps this external components is being called in the service of other programs, if words, just do not close external components, if not, just close external components.
The present invention is that reference is described according to process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (16)

1. the method for a supervisory routine, being applied to one has in the electric terminal of multitask system, described electric terminal comprises processor, storer and at least one external components, when first application program is in first state, occupy described processor the processing resource, occupy the storage resources of described storer and call first external components and make described first external components in running order, it is characterized in that described method comprises:
When described first application program is in described first state, record first component information of described first external components that described first application program calls;
When described first application program switches to the process of second state from described first state, produce an announcement information, described announcement information is used for described first application program of expression and switches to described second state from described first state;
When determining that according to described announcement information described first application program is in described second state, control described first external components according to described first component information and be in off working state; Wherein, when described first application program was in described second state, described first application program was not occupied the processing resource of described processor, occupies the storage resources of described storer.
2. the method for claim 1 is characterized in that, controls according to described first component information before described first external components is in off working state described, and described method also comprises:
Judge that whether described first external components is by second application call;
If not, then control described first external components and be in off working state.
3. method as claimed in claim 2 is characterized in that, describedly judges that described first external components whether by second application call, is specially:
By second component information, whether confirm described first external components by described second application call, the information of described first external components that described second component information is called for described first application program that records when described second application program is in described first state.
4. the method for claim 1 is characterized in that, controls according to described first component information before described first external components is in off working state described, and described method also comprises:
Judge whether described first application program has the service of calling described first external components in operation;
If not, then control described first external components and be in off working state.
5. method as claimed in claim 4 is characterized in that, describedly judges that whether described first application program has the service of calling described first external components in operation, is specially:
By first information on services, confirm whether described first application program has the service of calling described first external components in operation, and described first information on services is the information of first service of the described first application program correspondence of record.
6. the method for claim 1 is characterized in that, controls according to described first component information before described first external components is in off working state described, and described method also comprises:
Judge that whether described first external components is by the service call of one second application program;
If not, then control described first external components and be in off working state.
7. method as claimed in claim 6 is characterized in that, describedly judges that described first external components whether by the service call of one second application program, is specially:
By first information on services, whether confirm described first external components by the service call of described second application program, described first information on services is the information of first service of the described second application program correspondence of record.
8. the method for claim 1 is characterized in that, controls according to described first component information after described first external components is in off working state described, also records second component information that described first external components is in off working state.
9. method as claimed in claim 8, it is characterized in that, when described first application program switches to the process of described first state from described second state, produce another announcement information, described another announcement information is used for described first application program of expression and switches to described first state from described second state; Determine that according to described another announcement information described first application program is in described first state, it is in running order to control described first external components according to described second component information.
10. an electric terminal has a multitask system, it is characterized in that, described electric terminal comprises:
Processor, when first application program was in first state, described first application program was occupied the processing resource of described processor, and when described first application program was in second state, described first application program was not occupied the processing resource of described processor;
Storer, when described first application program was in described first state or second state, described first application program was occupied the resource of described storer;
First external components, when described first application program is in described first state, described first external components of described first application call, when described first application program was in described second state, described first external components was in off working state;
First record cell is used for recording first component information of described first external components when described first application program is in first state;
Control module is used for controlling described first external components according to described first component information and being in off working state when described first application program is in described second state.
11. electric terminal as claimed in claim 10, it is characterized in that, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge that whether described first external components is by second application call, if not, then described control module is controlled described first external components and is in off working state.
12. electric terminal as claimed in claim 11, it is characterized in that, described electric terminal also comprises second record cell, when being used for described second application program of record and being in described first state, the information of described first external components that described second application program is called, described second component information are used for confirming that whether described first external components is by described second application call.
13. electric terminal as claimed in claim 10, it is characterized in that, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge whether described first application program has the service of calling described first external components in operation, if not, then described control module is controlled described first external components and is in off working state.
14. electric terminal as claimed in claim 13, it is characterized in that, described electric terminal also comprises second record cell, first information on services that is used for first service of the described first application program correspondence of record, described first information on services are used for confirming whether described first application program has the service of calling described first external components in operation.
15. electric terminal as claimed in claim 10, it is characterized in that, described electric terminal also comprises judging unit, be used for controlling according to described first component information before described first external components is in off working state at described control module, judge that whether described first external components is by the service call of one second application program, if not, then described control module is controlled described first external components and is in off working state.
16. electric terminal as claimed in claim 15, it is characterized in that, described electric terminal also comprises second record cell, first information on services that is used for first service of the described second application program correspondence of record, described first information on services are used for confirming that whether described first external components is by the service call of described second application program.
CN201210040080.4A 2012-02-20 2012-02-20 A kind of method and electric terminal of management program Active CN103257894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210040080.4A CN103257894B (en) 2012-02-20 2012-02-20 A kind of method and electric terminal of management program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210040080.4A CN103257894B (en) 2012-02-20 2012-02-20 A kind of method and electric terminal of management program

Publications (2)

Publication Number Publication Date
CN103257894A true CN103257894A (en) 2013-08-21
CN103257894B CN103257894B (en) 2018-08-10

Family

ID=48961829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210040080.4A Active CN103257894B (en) 2012-02-20 2012-02-20 A kind of method and electric terminal of management program

Country Status (1)

Country Link
CN (1) CN103257894B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426244A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Application process management method and application process management device
CN105975344A (en) * 2016-05-10 2016-09-28 北京小米移动软件有限公司 Control method and device preventing application from excessively using sensor
CN106020893A (en) * 2016-05-26 2016-10-12 北京小米移动软件有限公司 Application installation method and device
CN106793031A (en) * 2016-12-06 2017-05-31 常州大学 Based on the smart mobile phone energy consumption optimization method for gathering competing excellent algorithm

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050187896A1 (en) * 2004-02-25 2005-08-25 Research In Motion Limited Method for modifying notifications in an electronic device
CN1716873A (en) * 2004-06-28 2006-01-04 华为技术有限公司 Method and system for managing intelligent external equipment in intelligent network
CN1737779A (en) * 2005-09-08 2006-02-22 中国工商银行 Method and system for expanding peripherals
CN101299847A (en) * 2008-06-25 2008-11-05 嘉兴闻泰通讯科技有限公司 Method for setting, controlling and switching forward and backward CCD camera of mobile terminal
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform
CN102135913A (en) * 2011-03-18 2011-07-27 宇龙计算机通信科技(深圳)有限公司 Method and device for responding application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050187896A1 (en) * 2004-02-25 2005-08-25 Research In Motion Limited Method for modifying notifications in an electronic device
CN1716873A (en) * 2004-06-28 2006-01-04 华为技术有限公司 Method and system for managing intelligent external equipment in intelligent network
CN1737779A (en) * 2005-09-08 2006-02-22 中国工商银行 Method and system for expanding peripherals
CN101299847A (en) * 2008-06-25 2008-11-05 嘉兴闻泰通讯科技有限公司 Method for setting, controlling and switching forward and backward CCD camera of mobile terminal
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform
CN102135913A (en) * 2011-03-18 2011-07-27 宇龙计算机通信科技(深圳)有限公司 Method and device for responding application

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426244A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Application process management method and application process management device
CN105426244B (en) * 2015-12-30 2019-03-22 Oppo广东移动通信有限公司 Application process management method and application process managing device
CN105975344A (en) * 2016-05-10 2016-09-28 北京小米移动软件有限公司 Control method and device preventing application from excessively using sensor
CN105975344B (en) * 2016-05-10 2019-12-13 北京小米移动软件有限公司 Control method and device for preventing excessive occupancy of sensor by application
CN106020893A (en) * 2016-05-26 2016-10-12 北京小米移动软件有限公司 Application installation method and device
CN106020893B (en) * 2016-05-26 2019-03-15 北京小米移动软件有限公司 Using the method and device of installation
CN106793031A (en) * 2016-12-06 2017-05-31 常州大学 Based on the smart mobile phone energy consumption optimization method for gathering competing excellent algorithm
CN106793031B (en) * 2016-12-06 2020-11-10 常州大学 Smart phone energy consumption optimization method based on set competitive optimization algorithm

Also Published As

Publication number Publication date
CN103257894B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN102789305B (en) Postponing suspend
TWI494857B (en) Method for performing wake-up event management, and associated apparatus and associated computer program product
RU2686673C1 (en) Device and method of terminal control and terminal
CN102156532B (en) Computer and method that reduces power consumption while maintaining a specific function
CN107302789B (en) Method and system for improving battery endurance of android device
CN107851050B (en) Device with watchdog timer and method for operating watchdog timer
EP2749988B1 (en) Method and device for application program operation, mobile terminal
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN103631359A (en) Information processing method and electronic equipment
CN101859261A (en) Control method and control equipment for releasing memory
CN111597042A (en) Service thread running method and device, storage medium and electronic equipment
CN102420911A (en) Switching device and switching method for dual systems of smart phone
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN103914295B (en) Wake events management method, wake events managing device
CN106547335A (en) Energy consumption reduces method and mobile terminal
CN107810488A (en) A kind of method of state management of virtual machine, device and intelligent terminal
CN105353864A (en) Static power consumption management method and system for electronic device
CN103701889A (en) Data center energy saving method on basis of cloud computing
CN104156223A (en) Application program control method and device for mobile terminal
CN103257894A (en) Program management method and electronic terminal
WO2019128573A1 (en) Information processing method, apparatus, computer device and computer-readable storage medium
KR102060431B1 (en) Apparatus and method for managing power in multi-core system
CN101968678A (en) Low-power consumption power supply management equipment for embedded Linux equipment
CN105101371B (en) A kind of mobile phone power saving management method
CN116578422B (en) Resource allocation method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant