CN103257894B - A kind of method and electric terminal of management program - Google Patents

A kind of method and electric terminal of management program Download PDF

Info

Publication number
CN103257894B
CN103257894B CN201210040080.4A CN201210040080A CN103257894B CN 103257894 B CN103257894 B CN 103257894B CN 201210040080 A CN201210040080 A CN 201210040080A CN 103257894 B CN103257894 B CN 103257894B
Authority
CN
China
Prior art keywords
application program
external components
state
service
information
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.)
Active
Application number
CN201210040080.4A
Other languages
Chinese (zh)
Other versions
CN103257894A (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

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of method and electric terminal of management program.Electric terminal includes processor, memory and at least one external components, occupy the process resource of processor, the storage resource of required storage when the first application program is in first state and the first external components is called to keep the first external components in running order, this method includes:When the first application program is in first state, the first component information for the first external components that the first application program of record is called;When the first application program is from during first state is switched to the second state, generate for indicating that the first application program is switched to the notification information of the second state from first state;When determining that the first application program is in the second state according to notification information, the first external components are controlled according to first component information and are in off working state;Wherein, when the first application program is in the second state, the first application program does not occupy the process resource of processor, the storage resource of required storage.

Description

A kind of method and electric terminal of management program
Technical field
The present invention relates to field of computer technology more particularly to the methods and electric terminal of a kind of management program.
Background technology
Multitask system is fitted on many electric terminals, that is to say, that can run multiple programs, example simultaneously at present Such as android system.In general, starting one program of operation has regular hour expense, therefore in order to accelerate to run Speed, when exiting a program, program does not exit really, and has been to switch to backstage, the journey of reruning such next time When sequence, startup that can be quickly.Therefore there may be many background programs in system.These background programs are typically in sleep state, Generally CPU (Central Processing Unit are not occupied;Central processing unit).But many background programs can open outside and set It is standby, for example, acceleration transducer, GPS (Global Position System;Global positioning system) etc., therefore very power consumption. It can just turn off these external equipments when generally only having these background programs really to exit.
In the prior art, in order to solve the above-mentioned technical problem, the technical solution adopted is that according to the important of application program Property kills some programs, i.e., really exits application program, but one can turn off and these application program phases even so The external equipment of pass, but program is exited so that when starting the program next time than relatively time-consuming, and application program is exiting When, current state can't be preserved, so status information can all lose when next time starts, i.e., application program does not return to last time State when exiting.
The present inventor in the implementation of the present invention, it is found that method in the prior art can not take into account power saving and saving Time, the two can only take one.
Invention content
The present invention provides a kind of method and electric terminal of management program, to solve management application in the prior art Method existing for can not take into account power saving and time-saving technical problem.
One aspect of the present invention provides a kind of method of management program, is applied to an electric terminal with multitask system In, the electric terminal includes processor, memory and at least one external components, when the first application program is in the first shape Occupy the process resource of the processor when state, occupy the storage resource of the memory and the first external components is called to make institute It is in running order to state the first external components, the method includes:When first application program is in the first state, Record the first component information for first external components that first application program is called;When first application program During the first state is switched to the second state, a notification information is generated, the notification information is for indicating described First application program is switched to second state from the first state;First application is determined according to the notification information When program is in second state, first external components are controlled according to the first component information and are in inoperative shape State;Wherein, when first application program is in second state, first application program does not occupy the processor Process resource, occupy the storage resource of the memory.
Preferably, it is described according to the first component information control first external components be in off working state it Before, the method further includes:Judge first external components whether by the second application call;If it is not, then control institute It states the first external components and is in off working state.
Preferably, described to judge first external components whether by the second application call, specially:Pass through second Whether component information confirms first external components by second application call, and the second component information is to work as Second application program is in first peripheral hardware that first application program recorded when the first state is called The information of component.
Preferably, it is described according to the first component information control first external components be in off working state it Before, the method further includes:Judge whether first application program has the service for calling first external components running; If it is not, then control first external components are in off working state.
Preferably, described to judge whether first application program has the service for calling first external components transporting Row, specially:By first service information, confirm whether first application program there are the clothes for calling first external components Business is being run, and the first service information is to record the information of the corresponding first service of first application program.
Preferably, it is described according to the first component information control first external components be in off working state it Before, the method further includes:Judge first external components whether by the service call of one second application program;If not, It then controls first external components and is in off working state.
Preferably, described to judge first external components whether by the service call of one second application program, specially: By first service information, whether first external components are confirmed by the service call of second application program, described the One information on services is the information for recording the corresponding first service of second application program.
Preferably, it is described according to the first component information control first external components be in off working state it Afterwards, the second component information that first external components are in off working state is also recorded.
Preferably, when first application program is from during second state is switched to the first state, production Raw another notification information, another notification information is for indicating that first application program is switched to institute from second state State first state;Determine that first application program is in the first state according to another notification information, according to described It is in running order that second component information controls first external components.
Another aspect of the present invention provides a kind of electric terminal, and with a multitask system, the electric terminal includes:Processing Device, when the first application program is in first state, first application program occupies the process resource of the processor, works as institute When stating the first application program and being in the second state, first application program does not occupy the process resource of the processor;Storage Device, when first application program is in the first state or the second state, first application program occupies described deposit The resource of reservoir;First external components, when first application program is in the first state, first application program First external components are called, when first application program is in second state, at first external components In off working state;First recording unit, for when first application program is in first state, recording outside described first If the first component information of component;Control unit is used for when first application program is in second state, according to institute It states first component information control first external components and is in off working state.
Preferably, the electric terminal further includes judging unit, is used in described control unit according to the first component Whether information controls first external components and is in before off working state, judge first external components by the second application Routine call, if it is not, then control first external components are in off working state.
Preferably, the electric terminal further includes the second recording unit, and institute is in for recording second application program When stating first state, the information for first external components that second application program is called, the second component information For confirming first external components whether by second application call.
Preferably, the electric terminal further includes judging unit, is used in described control unit according to the first component Information controls first external components and is in before off working state, judges whether first application program has described in calling The service of first external components is being run, if it is not, then control first external components are in off working state.
Preferably, the electric terminal further includes the second recording unit, corresponding for recording first application program The first service information of first service, the first service information is for confirming whether first application program has described in calling The service of first external components is being run.
Preferably, the electric terminal further includes judging unit, is used in described control unit according to the first component Information controls first external components and is in before off working state, judges whether first external components are answered by one second With the service call of program, if it is not, then control first external components are in off working state.
Preferably, the electric terminal further includes the second recording unit, corresponding for recording second application program The first service information of first service, whether the first service information is for confirming first external components by described second The service call of application program.
The present invention has the beneficial effect that:
The case where one embodiment of the invention calls external components using records application program, when application program switches from foreground When to backstage, just by the external components of application call to closing, it is possible to power saving, and in application program still resides in It in depositing, does not exit, so when starting application program next time, will soon start, while having saved the time.
Further, also other applications are judged whether there is when closing external components in one embodiment of the invention using The external components, if it does, external components are not just closed, if it is not, being shut off external components, it is possible in not shadow Turn off no external components in the case of ringing user's use, achievees the purpose that power saving, nor affect on user experience.Equally, also It can further determine whether the application program service of oneself has and call the external components, or further can determine whether There is the service of other programs calling the external components, if it does, external components are not just closed, if it is not, being shut off External components.
Description of the 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 management program in one embodiment of the invention;
Fig. 3 is the method flow diagram of the management program in another embodiment of the present invention.
Specific implementation mode
First embodiment of the invention provides a kind of method of management program, and this method is applied on an electric terminal, the electricity Sub- terminal is, for example, mobile phone, tablet computer or laptop etc., which has multiple task operating system, such as Android system.As shown in Figure 1, the electric terminal includes processor 101, when the first application program is in first state, the One application program occupies the process resource of processor 101, and when the first application program is in the second state, the first application program is not Occupy the process resource of processor 101;Memory 102, when the first application program is in first state or the second state, first The resource of application program required storage 102;First external components 103, when the first application program is in first state, first The first external components of application call 103, when the first application program is in the second state, the first external components 104 are in Off working state;First recording unit 104, for when the first application program is in first state, recording the first external components 103 first component information;Control unit 105, for when the first application program is in the second state, being believed according to the first component Breath the first external components 103 of control are in off working state.
In the present embodiment, external components are only illustrated with the first external components 103, in practice, peripheral hardware Component can there are many, it is possibility to have it is multiple.
For the more detailed description present invention, specific example will be lifted below to illustrate the present invention.
Such as the electric terminal is mobile phone, multiple task operating system is android system, and user opens broadcasting at this time Device is in first state so the corresponding program of player is activated, and player needs to call external components:Loudspeaker, institute With the first recording unit 104 at this time can record player call the component informations of loudspeaker, for example, when calling loudspeaker it is necessary to adjusting With this interface of the registerListerner of SpeakerManager, so whether records application program beats in the interface Loudspeaker are opened, for other external components, can equally be handled in the method.
When after a period of time, user needs to use other applications, such as at this moment to open browser clear by user Look at webpage, at this moment the interface of player represents the running background that player is switched to system from foreground with regard to invisible, The second state is switched to from first state.Because an interface corresponds to an activity in android system, This function of ActivityManagerNative.getDefault () .registerActivityWatcher can be utilized, An activity watcher, i.e. interface monitor are registered, when activity changes, activity watcher are just A notification information is will produce, according to the notification information, you can know whether application program is switched to from the background from foreground.
When determining that player is in backstage according to the notification information, control unit 105 is just according to the first recording unit 104 The player of record calls the component information of loudspeaker, control loudspeaker to be in off working state, that is, close loudspeaker, and play at this time Device has not occupied the process resource of processor 101, but the still storage resource of required storage 102.Therefore, it can both save Electricity, and the time of next startup player has been saved, and maintain the state of player.
For another example user starts screen rotation program, so screen rotation program can call external components:Gravity sensitive Device, but after screen rotation program is switched to backstage from foreground, just close gravity sensor, to achieve the purpose that power saving.
In a further embodiment, when control unit 105 control the first external components 103 be in off working state it Afterwards, also record the second component information that the first external components 103 are in off working state, thus when the first application program again from after When platform is switched to foreground, it is in running order to control the first external components 103 further according to second component information.In this way, i.e. reachable To the purpose of power saving, have when can make to need application program, application program energy normal operation.Continue to continue to use the example above, for example, Player program from when being switched to foreground from the background, open, and is at working condition, such as by the loudspeaker that will be just in off working state This player program can normal operation.Such as screen rotation program from when being switched to foreground from the background again, just by gravity sensor It opens, is at working condition so that screen rotation program can normal operation.And either close external components still again Secondary unlatching external components, all do not need the participation of application program itself.
In addition, when the first application program is switched to first state from the second state, another notification information can be also generated, is used It is switched to first state from the second state in the first application program of expression, i.e. the first application program, should from foreground is switched to from the background Notification information is similar with the production method of aforementioned notification information.
In another embodiment, electric terminal further includes judging unit, for being believed according to the first component in control unit 105 Breath control loudspeaker are in before off working state, are judged whether also the second application call loudspeaker.Such as player The external components of calling are in addition to loudspeaker, also color lamp, such as LED light, when player is switched to backstage, judging unit It has determined whether that other applications are calling color lamp or loudspeaker, has found adjusting there is no other applications after judging With color lamp, but there are one application programs to call loudspeaker, so at this moment just control color lamp is in inoperative shape to control unit 105 State, and for loudspeaker, then still keep working condition.In this way, can power saving again do not influence user's normal use.
Further, electric terminal further includes the second recording unit, and judging unit is according to the second of the second recording unit records When application program is in first state, the second application call loudspeaker either come really by the information of color lamp or other external components Recognize whether the second application program calls loudspeaker or color lamp.And the mode of the second recording unit records is similar to the first recording unit 104。
In another embodiment, electric terminal may also include another judging unit, be used in control unit 105 according to first Component information control loudspeaker are in before off working state, carry out judging whether the first application program has the service for calling loudspeaker to exist Operation.Such as player call external components in addition to loudspeaker, also color lamp, such as LED light, when player is switched to When backstage, judging unit is judged as whether player also has service calling color lamp or loudspeaker, is found not after judging Color lamp is being called in service, but there are one services to call loudspeaker, so at this moment just control color lamp is in non-work to control unit 105 Make state, and for loudspeaker, then still keep working condition.In this way, can power saving again do not influence user's normal use.
Further, electric terminal may also include another recording unit, and another judging unit is according to another recording unit records The information on services of the corresponding first service of the first application program call loudspeaker or coloured silk to confirm whether the first application program has The service of lamp is being run.In specific use, it can be obtained from the getRunningService interfaces of ActivityManager The information on services being currently running, to obtain whether player has service running.
In another embodiment, electric terminal may also include another judging unit, be used in control unit 105 according to first Component information control loudspeaker are in before off working state, judge whether the second application program has the service for calling loudspeaker transporting Row.Such as player call external components in addition to loudspeaker, also color lamp, such as LED light, after player is switched to When platform, another judging unit is judged as whether other applications also have service calling color lamp or loudspeaker, is sent out after judging Now there is no services in calling color lamp, but there are one services to call loudspeaker, so at this moment control unit 105 just controls color lamp In off working state, and for loudspeaker, then working condition is still kept.In this way, can power saving do not influence user again and normally make With.
Further, electric terminal may also include another recording unit, and another judging unit is according to another recording unit records The information on services of the corresponding first service of the second application program call loudspeaker or coloured silk to confirm whether the second application program has The service of lamp is being run.In specific use, it can be obtained from the getRunningService interfaces of ActivityManager The information on services being currently running, to obtain whether the second application program has service running.
The above various embodiments can individually be implemented, and also in combination with implementation, those skilled in the art can carry out according to actual needs Selection.
It will be specifically described the method flow of management program of the present invention below, referring to FIG. 2, Fig. 2 is the pipe in the present embodiment Manage the method flow diagram of program.
As shown in Fig. 2, this method includes:
Step 201:When the first application program is in first state, the first peripheral hardware that the first application program is called is recorded The first component information of component;
Step 202:When the first application program is from during first state is switched to the second state, generating a notice letter Breath, notification information is for indicating that the first application program is switched to the second state from first state;
Step 203:When determining that the first application program is in the second state according to notification information, according to first component information control It makes the first external components and is in off working state;Wherein, when the first application program is in the second state, the first application program is not Occupy the process resource of processor, the storage resource of required storage.
For the method for the management program of the more detailed description present invention, names specific example and carrys out specific description, Wherein electric terminal is by taking mobile phone as an example, and multiple task operating system is by taking android system as an example, in other embodiments, multitask Operating system can also be other systems, and electric terminal can also be the electric terminal that other support multiple task operating system.
For example, user opens player, so the corresponding program of player is activated, that is, it is in first state, and broadcast Device is put to need to call external components:Loudspeaker, so record player calls the component information of loudspeaker at this time, for example, when calling loudspeaker When it is necessary to call this interface of the registerListerner of SpeakerManager, so in the interface record application Whether program opens loudspeaker, for other external components, can equally handle in the method.
When after a period of time, user needs to use other applications, such as at this moment to open browser clear by user Look at webpage, at this moment the interface of player represents the running background that player is switched to system from foreground with regard to invisible, The second state is switched to from first state.Because an interface corresponds to an activity in android system, This function of ActivityManagerNative.getDefault () .registerActivityWatcher can be utilized, An activity watcher, i.e. interface monitor are registered, when activity changes, activity watcher are just A notification information is will produce, according to the notification information, you can know whether application program is switched to from the background from foreground.
When determining that player is in backstage according to the notification information, the component of loudspeaker is just called according to the player of record Information, control loudspeaker are in off working state, that is, close loudspeaker, and player has not occupied the place of processor 101 at this time Reason resource, but the still storage resource of required storage 102.Therefore, not only can be with power saving, but also saved next startup player Time, and maintain the state of player.
For another example user starts screen rotation program, so screen rotation program can call external components:Gravity sensitive Device, but after screen rotation program is switched to backstage from foreground, just close gravity sensor, to achieve the purpose that power saving.
In a further embodiment, after control unit, which controls the first external components 103, is in off working state, also The second component information that the first external components are in off working state is recorded, so when the first application program again from being switched to from the background When foreground, it is in running order to control the first external components further according to second component information.In this way, can reach the mesh of power saving , have when can make to need application program, application program energy normal operation.Continue to continue to use the example above, for example, player program From when being switched to foreground from the background, the loudspeaker that will be just in off working state are opened, and working condition, such player journey are at Sequence can normal operation.Gravity sensor is just opened, is made at its from when being switched to foreground from the background by such as screen rotation program again In working condition so that screen rotation program can normal operation.And it either closes external components and is still again turned on peripheral hardware Component does not all need the participation of application program itself.
In addition, when the first application program is switched to first state from the second state, another notification information can be also generated, is used It is switched to first state from the second state in the first application program of expression, i.e. the first application program, should from foreground is switched to from the background Notification information is similar with the production method of aforementioned notification information.
In another embodiment, the method for providing another management program, referring to FIG. 3, this method is step in Fig. 2 203 advanced optimize, and this method includes:
Step 301:Determine that the first application program is in the second state according to notification information, i.e., according to first component information The first external components are controlled to be in before off working state;
Step 302:Judge the first external components whether by the second application call;
Step 303:If it is not, then the first external components of control are in off working state.
Further, this method further includes step 304, i.e., if the judging result of step 302 is when being, outside control first If component is in running order.
Continue to continue to use example above-mentioned, such as the external components that player calls are in addition to loudspeaker, also color lamp, such as LED Indicator light has determined whether that other applications are calling color lamp or loudspeaker, has worked as judgement when player is switched to backstage Find that there is no other applications to call color lamp later, but there are one application programs to call loudspeaker, so at this moment Control color lamp is in off working state, and for loudspeaker, then still keep working condition.In this way, can power saving again do not influence to use Family normal use.
Further, the first external components are judged in step 302 whether by the second application call, specially:
Such as by second component information, confirm the first external components whether by the second application call, second component The letter for the first external components that information is called for the second application program for being recorded when the second application program is in first state Breath.
In another embodiment, similar with previous embodiment, it is only whether to judge the second application program in step 302 There is the service for calling loudspeaker running.Such as player call external components in addition to loudspeaker, also color lamp, such as LED indication Lamp is judged as whether player also has service calling color lamp or loudspeaker when player is switched to backstage, after judgement It was found that there is no services to call color lamp, but there are one services to call loudspeaker, so at this moment just control color lamp is in non-work Make state, and for loudspeaker, then still keep working condition.In this way, can power saving again do not influence user's normal use.
Further, judge whether the first application program has the service for calling the first external components running, specially:Pass through First service information, confirms whether the first application program has the service for calling the first external components running, first service information For the information of the corresponding first service of the first application program of record.It, can be from ActivityManager's in specific use GetRunningService interfaces obtain the information on services being currently running, to obtain whether player has service running.
In another embodiment, it is to judge the first external components whether by the service of one second application program in step 302 It calls.Such as player call external components in addition to loudspeaker, also color lamp, such as LED light, when player is switched to It when backstage, is judged as whether other applications also have service calling color lamp or loudspeaker, finds that there is no take after judging Color lamp is being called in business, but there are one services to call loudspeaker, so at this moment just control color lamp is in off working state, and for Loudspeaker then still keep working condition.In this way, can power saving again do not influence user's normal use.
Further, judge the first external components whether by the service call of one second application program, specially:Pass through first Whether information on services confirms the first external components by the service call of the second application program, and first service information is record second The information of the corresponding first service of application program.It, can be from ActivityManager's in specific use GetRunningService interfaces obtain the information on services being currently running, to obtain whether the second application program has service to exist Operation.
The various embodiments described above can individually be implemented, and implementation can be also combined with each other, and those skilled in the art can be according to actual needs It is selected.
The case where one embodiment of the invention calls external components using records application program, when application program switches from foreground When to backstage, just by the external components of application call to closing, it is possible to power saving, and in application program still resides in It in depositing, does not exit, so when starting application program next time, will soon start, while having saved the time.
Further, also other applications are judged whether there is when closing external components in one embodiment of the invention using The external components, if it does, external components are not just closed, if it is not, being shut off external components, it is possible in not shadow Turn off no external components in the case of ringing user's use, achievees the purpose that power saving, nor affect on user experience.Equally, also It can further determine whether the application program service of oneself has and call the external components, or further can determine whether There is the service of other programs calling the external components, if it does, external components are not just closed, if it is not, being shut off External components.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of method of management program is applied in an electric terminal with multitask system, the electric terminal includes Processor, memory and at least one external components occupy the processor when the first application program is in first state Process resource, occupy the memory storage resource and call the first external components so that first external components is in Working condition, which is characterized in that the method includes:
When first application program is in the first state, first application program is called described first is recorded The first component information of external components;
When first application program is from during the first state is switched to the second state, a notification information, institute are generated Notification information is stated for indicating that first application program is switched to second state from the first state;
When determining that first application program is in second state according to the notification information, by second component information, Confirm first external components whether by the second application call;
If it is not, then controlling first external components according to the first component information is in off working state;
Wherein, when first application program is in second state, first application program does not occupy the processing The process resource of device occupies the storage resource of the storage;The second component information is when second application program is in The information for first external components that second application program recorded when the first state is called.
2. the method as described in claim 1, which is characterized in that control described first according to the first component information described External components are in before off working state, and the method further includes:
Judge whether first application program has the service for calling first external components running;
If it is not, then control first external components are in the off working state.
3. method as claimed in claim 2, which is characterized in that described to judge whether first application program has described in calling The service of first external components is being run, specially:
By first service information, confirm whether first application program has the service for calling first external components transporting Row, the first service information is to record the information of the corresponding first service of first application program.
4. the method as described in claim 1, which is characterized in that control described first according to the first component information described External components are in before off working state, and the method further includes:
Judge first external components whether by the service call of one second application program;
If it is not, then control first external components are in the off working state.
5. method as claimed in claim 4, which is characterized in that described to judge whether first external components are answered by one second With the service call of program, specially:
By first service information, confirm first external components whether by the service call of second application program, institute It is to record the information of the corresponding first service of second application program to state first service information.
6. the method as described in claim 1, which is characterized in that control described first according to the first component information described External components are in after off working state, also record the second component that first external components are in the off working state Information.
7. method as claimed in claim 6, which is characterized in that when first application program is switched to from the first state During second state, generate another notification information, another notification information for indicate first application program from Second state is switched to the first state;Determine that first application program is in institute according to another notification information First state is stated, it is in running order to control first external components according to the second component information.
8. a kind of electric terminal, there is a multitask system, which is characterized in that the electric terminal includes:
Processor, when the first application program is in first state, first application program occupies the processing of the processor Resource, when first application program is in the second state, first application program does not occupy the processing of the processor Resource;
Memory, when first application program is in the first state or second state, described first applies journey Sequence occupies the resource of the memory;
First external components, when first application program is in the first state, the first application call institute The first external components are stated, when first application program is in second state, first external components are in non-work Make state;
First recording unit, for when first application program is in the first state, recording first peripheral hardware portion The first component information of part;
Second recording unit, when being in the first state for recording the second application program, described in second application program The second component information of first external components called, the second component information is for confirming first external components Whether by second application call;
Whether judging unit judges first external components by second application call;
Control unit is used to be in second state when first application program and first external components is not by institute When stating the second application call, first external components are controlled according to the first component information and are in the inoperative shape State.
9. electric terminal as claimed in claim 8, which is characterized in that the electric terminal further includes judging unit, is used for Before described control unit is in off working state according to first component information control first external components, institute is judged State whether the first application program has the service for calling first external components running;If it is not, then described control unit control It makes first external components and is in the off working state.
10. electric terminal as claimed in claim 9, which is characterized in that the electric terminal further includes the second recording unit, is used In the first service information for recording the corresponding first service of first application program, the first service information is for confirming institute State whether the first application program has the service for calling first external components running.
11. electric terminal as claimed in claim 8, which is characterized in that the electric terminal further includes judging unit, is used for Before described control unit is in the off working state according to first component information control first external components, sentence Whether first external components break by the service call of one second application program;If it is not, then controlling first peripheral hardware portion Part is in the off working state.
12. electric terminal as claimed in claim 11, which is characterized in that the electric terminal further includes the second recording unit, First service information for recording the corresponding first service of second application program, the first service information is for confirming Whether first external components are by the service call of 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 CN103257894A (en) 2013-08-21
CN103257894B true 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)

Families Citing this family (4)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1737779A (en) * 2005-09-08 2006-02-22 中国工商银行 Method and system for expanding peripherals
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7873646B2 (en) * 2004-02-25 2011-01-18 Research In Motion Limited Method for modifying notifications in an electronic device
CN100373863C (en) * 2004-06-28 2008-03-05 华为技术有限公司 Method and system for managing intelligent external equipment in intelligent network
CN101299847B (en) * 2008-06-25 2013-04-10 闻泰通讯股份有限公司 Method for setting, controlling and switching forward and backward CCD camera of mobile terminal
CN101673216B (en) * 2008-09-09 2016-03-30 联想(北京)有限公司 Closing application program method and apparatus
CN102135913A (en) * 2011-03-18 2011-07-27 宇龙计算机通信科技(深圳)有限公司 Method and device for responding application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1737779A (en) * 2005-09-08 2006-02-22 中国工商银行 Method and system for expanding peripherals
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform

Also Published As

Publication number Publication date
CN103257894A (en) 2013-08-21

Similar Documents

Publication Publication Date Title
US10440652B2 (en) Power management of a mobile communications device
CN106125882B (en) Application program management method and electronic equipment
CN107851050B (en) Device with watchdog timer and method for operating watchdog timer
CN102789305B (en) Postponing suspend
CN102866903B (en) Background work and foreground work are separated to coupling
CN102156532B (en) Computer and method that reduces power consumption while maintaining a specific function
CN106256116B (en) A kind of method and terminal controlling application program
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN107835311B (en) Application management method and device, storage medium and electronic equipment
CN103257894B (en) A kind of method and electric terminal of management program
CN107450709B (en) Application processing method, device, storage medium and electronic equipment
CN106648849A (en) Process freezing method and mobile terminal
CN107003891A (en) Virtual machine switching method, device, electronic equipment and computer program product
CN104346563B (en) The method and electronic equipment of a kind of information processing
CN107943269A (en) Schedule job control method, device, terminal device and storage medium
CN108279765A (en) The method for managing power supply and mobile device of mobile device
CN108628560A (en) A kind of display methods and terminal
CN102497479B (en) Method for smart phone to judge Trojprograms according to application software behaviors
CN105893134A (en) Information processing method and electronic equipment
CN103631356B (en) A kind of method and electronic equipment of economize on electricity
CN113439263B (en) Application cleaning method and device, storage medium and electronic equipment
CN104345862B (en) A kind of information processing method and electronic equipment
CN107765834B (en) Application management method and device, storage medium and electronic equipment
US20200076938A1 (en) Method and system for managing accessory application of accessory device by companion device
CN109783264A (en) A kind of High Availabitity solution of database

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