CN106155870B - Terminal optimization processing method and device and terminal - Google Patents
Terminal optimization processing method and device and terminal Download PDFInfo
- Publication number
- CN106155870B CN106155870B CN201510204350.4A CN201510204350A CN106155870B CN 106155870 B CN106155870 B CN 106155870B CN 201510204350 A CN201510204350 A CN 201510204350A CN 106155870 B CN106155870 B CN 106155870B
- Authority
- CN
- China
- Prior art keywords
- terminal
- prompt
- window
- application program
- target application
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides an optimization processing method and device for a terminal and the terminal, wherein the method comprises the following steps: when an access request for a target application program in a terminal is detected, optimizing an operating system of the terminal; generating optimization prompt information according to the processing process of the optimization processing; displaying a prompt window in an operating system of the terminal in a shading mode on an access window of the target application program; and outputting the optimization prompt information in the prompt window. The method and the device can ensure that the accessed target application program can be normally used without interference, can output optimization prompt information related to the optimization processing process, and improve the user perception and the intuitiveness of the optimization processing.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a terminal optimization processing method and device and a terminal.
Background
With the development of internet technology, terminals such as mobile phones and smart wearable devices are increasingly widely used. The operating system of the terminal may include, but is not limited to: android (Android, a mobile operating system), and so on. Various applications can be installed and run in the terminal, for example: an instant messaging application, an SNS (Social Networking Services) application, a game application, a security application, and the like. The user can access the application program in the terminal, and in order to ensure the use fluency of the currently accessed application program, when the accessed application program is started, the terminal can perform optimization processing such as process cleaning, CPU frequency modulation and the like on an operating system. In the prior art, the following two optimization processing schemes mainly exist, one of which is as follows: the optimization processing process of the terminal is carried out in the background, the terminal does not inform any information about the optimization processing to the user in the optimization processing process, and the scheme has low user perception and low intuition degree, so that the use experience of the user is influenced; the other scheme is as follows: the target application program is started in a delayed mode, the user is informed of the fact that optimization processing is about to be conducted on the terminal, and the target application program is started after the optimization processing on the terminal is completed by the background.
Disclosure of Invention
The embodiment of the invention provides an optimization processing method and device for a terminal and the terminal, which can ensure that an accessed target application program can be normally used without interference, can output optimization prompt information related to an optimization processing process, and can improve the perception of a user and the intuitiveness of optimization processing.
A first aspect of an embodiment of the present invention provides an optimization processing method for a terminal, which may include:
when an access request for a target application program in a terminal is detected, optimizing an operating system of the terminal;
generating optimization prompt information according to the processing process of the optimization processing;
displaying a prompt window in an operating system of the terminal in a shading mode on an access window of the target application program;
and outputting the optimization prompt information in the prompt window.
A second aspect of the embodiments of the present invention provides an optimization processing apparatus for a terminal, which may include:
the optimization processing unit is used for optimizing an operating system of the terminal when an access request of a target application program in the terminal is detected;
the information generating unit is used for generating optimization prompt information according to the processing process of the optimization processing;
the shading display unit is used for displaying a prompt window in an operating system of the terminal in a shading mode on an access window of the target application program;
and the prompt unit is used for outputting the optimized prompt information in the prompt window.
A third aspect of the embodiments of the present invention provides a terminal, which may include the optimization processing apparatus for a terminal provided in the second aspect.
The embodiment of the invention has the following beneficial effects:
according to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an optimization processing method of a terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of another optimization processing method for a terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an optimization processing apparatus of a terminal according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of the mask display unit shown in FIG. 3;
fig. 5 is a schematic structural diagram of an embodiment of the cue unit shown in fig. 3.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention, the terminal can be a notebook computer, a mobile phone, a PAD (tablet computer), a vehicle-mounted terminal, intelligent wearable equipment and other equipment. The operating system of the terminal may include, but is not limited to: android (Android, a mobile operating system), and so on. The terminal can be installed and run various applications, including but not limited to: an instant messaging application, an SNS (social networking Services) application, a game application, a security application, and the like. The user may access applications in the terminal, such as: the user can click a shortcut icon of a target application program on a terminal desktop to access the target application program; alternatively, the user may select a target application among a list of applications in the terminal to access the target application. It should be noted that the target application may be any application installed and running in the terminal.
In order to ensure the use fluency of the currently accessed target application program, when the target application program is started, the terminal performs optimization processing such as process cleaning and CPU frequency modulation on the operating system, so as to improve the response rate of the operating system of the terminal and improve the use experience of a user on the target application program. The optimization processing procedure of the terminal can be executed by an application program with the optimization processing capability of the terminal, such as: security applications in the terminal, system management applications, system acceleration applications, etc. The optimization processing scheme of the terminal of the embodiment of the invention can output the optimization prompt information related to the optimization processing process on the premise of ensuring that the target application program is not interfered to be normally used, thereby improving the perception of the user and the intuitiveness of the optimization processing.
Based on the above description, the optimization processing method of the terminal according to the embodiment of the present invention will be described in detail below with reference to fig. 1 to fig. 2. It should be noted that the following flows of the methods shown in fig. 1 to fig. 2 may be executed by an optimization processing apparatus of a terminal provided in an embodiment of the present invention, where the apparatus may be an application program having an optimization processing capability in the terminal, for example: security applications in the terminal, system management applications, system acceleration applications, etc.
Referring to fig. 1, a flowchart of an optimization processing method for a terminal according to an embodiment of the present invention is shown; the method may comprise the following steps S101-S104.
S101, when an access request to a target application program in a terminal is detected, optimizing an operating system of the terminal.
The target application program can be any application program installed and running in the terminal, including but not limited to: an instant messaging application, an SNS application, a gaming application, a security application, and the like. The user may access applications in the terminal, such as: the user can click a shortcut icon of a target application program on a terminal desktop to access the target application program; alternatively, the user may select a target application among a list of applications in the terminal to access the target application. In this step, when the above-described access operation such as clicking or selection by the user is detected, it is confirmed that the access request to the target application is detected. In response to the above access operation of the user, the terminal needs to start the target application program, in the embodiment of the present invention, the starting process of the target application program and the optimization processing process of the terminal may be executed in parallel, and the optimization processing process of the terminal does not affect or interfere with the use of the target application program. The optimization processing can comprise at least one of process cleaning, CPU frequency modulation, garbage file cleaning, redundancy cleaning and memory release optimization. In this step, the operating system of the terminal is optimized, so that memory occupation and CPU consumption in the operating system of the terminal can be reduced, and the response rate of the operating system of the terminal is improved, thereby improving the system performance of the operating system of the terminal.
And S102, generating optimization prompt information according to the processing process of the optimization processing.
Wherein the optimization hint information may include, but is not limited to: at least one of prompt information for starting optimization processing, prompt information for finishing optimization processing, prompt information of optimization results and prompt information of optimization completion rate; for example: the optimization prompt information may be "memory acceleration in progress", "memory acceleration completed", and the memory reaches an optimal value ", and the like.
S103, displaying a prompt window in the operating system of the terminal in a shading mode on the access window of the target application program.
And responding to the access operation of the user to the target application program, wherein the terminal needs to start the target application program and output an access window of the target application program, and the access window of the target application program can be used for displaying an interactive interface of the target application program. In the embodiment of the present invention, the starting process of the target application and the optimization process of the terminal may be executed in parallel, and the optimization process of the terminal does not affect or interfere with the use of the target application, so in this step, a prompt window in the operating system of the terminal may be displayed in a masking manner on an access window of the target application, that is, the access window of the target application and the prompt window in the operating system of the terminal are output simultaneously, and the prompt window is superimposed on the access window of the target application. The prompt window can be a user-defined window in an operating system of the terminal, and the display of the prompt window can be controlled according to attribute information, including display optimization level, transparency and the like, of the prompt window by configuring the attribute information of the prompt window.
And S104, outputting the optimization prompt information in the prompt window.
Outputting the optimization prompt information in the prompt window, for example: the optimization prompt information can be memory acceleration, memory acceleration completion, optimal memory value achievement and the like, a user can read the content of the optimization prompt information from the prompt window and obtain the optimization processing process, and the optimization prompt information is output through the prompt window, so that the user perception and intuition of the optimization processing process are effectively improved.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
Please refer to fig. 2, which is a flowchart of another method for optimizing a terminal according to an embodiment of the present invention; the method may include the following steps S201 to S213.
S201, monitoring a starting event of at least one application program in the terminal.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. The user may access applications in the terminal, such as: the user can click a shortcut icon of an application program on the terminal desktop to access the application program; alternatively, the user may select an application from a list of applications in the terminal to access the application. In response to the above access operation, such as clicking or selecting, by the user, the terminal needs to start the operated application, and this step may monitor a start event of at least one application in the terminal.
S202, when the starting event of the target application program in the at least one application program is monitored, determining that the access request to the target application program is detected.
If the starting event of the target application program in the at least one application program is monitored, the user is indicated to execute the access operation on the target application program, and the method comprises the following steps of: clicking a shortcut icon of a target application program on a terminal desktop; or, an access operation such as a target application program may be selected from an application program list in the terminal, and in this step, it may be determined that an access request for the target application program is detected according to a monitored start event of the target application program. It should be noted that the target application may be any application installed and running in the terminal.
S203, when the access request to the target application program in the terminal is detected, optimizing the operating system of the terminal.
In the embodiment of the present invention, the starting process of the target application and the optimization processing process of the terminal may be executed in parallel, and the optimization processing process of the terminal does not affect or interfere with the use of the target application. The optimization processing can comprise at least one of process cleaning, CPU frequency modulation, garbage file cleaning, redundancy cleaning and memory release optimization. In this step, the operating system of the terminal is optimized, so that memory occupation and CPU consumption in the operating system of the terminal can be reduced, and the response rate of the operating system of the terminal is improved, thereby improving the system performance of the operating system of the terminal.
And S204, generating optimization prompt information according to the processing process of the optimization processing.
Wherein the optimization hint information may include, but is not limited to: at least one of prompt information for starting optimization processing, prompt information for finishing optimization processing, prompt information of optimization results and prompt information of optimization completion rate; for example: the optimization prompt information may be "memory acceleration in progress", "memory acceleration completed", and the memory reaches an optimal value ", and the like.
S205, configuring attribute information of a prompt window in an operating system of the terminal.
The prompt window can be a user-defined window in an operating system of the terminal, and the display of the prompt window can be controlled according to the attribute information by configuring the attribute information of the prompt window. The attribute information may include, but is not limited to: display priority and transparency. The display priority may be used to determine whether the prompt window is displayed in a mask manner, and if the prompt window is displayed in a mask manner, the display priority of the prompt window may be configured to be the highest level of an operating system of the terminal, so that the prompt window can be covered or superimposed on an access window of any application program, and therefore, the display priority may include: a SYSTEM ALERT (SYSTEM _ ALERT) level or a SYSTEM ERROR (SYSTEM _ ERROR) level. The transparency can be used for determining the masking degree of the prompt window, and if the prompt window is required to be a full-transparency mask, the transparency of the prompt window can be configured to be 100%; if the prompt window is required to be a non-transparent mask, the transparency of the prompt window may be configured to be 0%, and thus, the range of the transparency is 0% to 100%. It is understood that the attribute information of the prompt window may also include other information, such as display size, etc., for example: if the prompt window is required to be displayed in a full screen mode, the display size of the prompt window can be configured to be the screen size of the terminal; therefore, the display size of the prompt window ranges from 0 to the terminal screen size.
S206, creating a mask display layer in the terminal.
The mask display layer, which may also be referred to as a mask layer, may refer to a layer overlying a masked window for displaying the masked window. This step may employ an image layer creation tool such as LightBox (an image layer creation tool) to create a mask display layer in the terminal.
S207, displaying the access window of the target application program, and outputting the mask display layer on the window of the target application program.
And responding to the access operation of the user to the target application program, wherein the terminal needs to start the target application program and output an access window of the target application program, and the access window of the target application program can be used for displaying an interactive interface of the target application program. In the embodiment of the present invention, the starting process of the target application and the optimization process of the terminal may be executed in parallel, and the optimization process of the terminal does not affect or interfere with the use of the target application, so that the step outputs the mask display layer on the window of the target application while displaying the access window of the target application.
And S208, calling an API (Application Programming interface) interface opened by the operating system of the terminal to acquire the prompt window.
In this step, the API interface opened by the operating system of the terminal may be called to obtain the prompt window.
S209, displaying the prompt window in the operating system of the terminal in the shade display layer according to the attribute information of the prompt window.
The attribute information may include, but is not limited to: display priority and transparency. The display priority may be used to determine whether the prompt window is displayed in a mask manner, and if the prompt window is displayed in a mask manner, the display priority of the prompt window may be configured to be the highest level of an operating system of the terminal, so that the prompt window can be covered or superimposed on an access window of any application program, and therefore, the display priority may include: a SYSTEM ALERT (SYSTEM _ ALERT) level or a SYSTEM ERROR (SYSTEM _ ERROR) level. The transparency can be used for determining the masking degree of the prompt window, and if the prompt window is required to be a full-transparency mask, the transparency of the prompt window can be configured to be 100%; if the prompt window is required to be a non-transparent mask, the transparency of the prompt window may be configured to be 0%, and thus, the range of the transparency is 0% to 100%. In this step, the display of the prompt window is controlled according to the attribute information of the prompt window, for example: if the display priority of the prompt window is a SYSTEM warning (System _ ALERT) level or a SYSTEM ERROR (System _ ERROR) level, controlling the prompt window to be displayed on the mask display layer; further, if the transparency of the prompt window is 50%, controlling the prompt window to be displayed as a semi-transparent mask.
And S210, processing the optimized prompt information into prompt animation.
In a specific implementation, the optimized hint information may be processed into a hint animation according to animation rules such as Flash, flv (Flash Video, a Video format), for example: assuming that the optimization hint information includes: the optimization prompting information can be processed into a rotating animation according to flash animation production rules, and the content of the optimization prompting information is visually displayed through the rotating animation.
S211, outputting the prompting animation in the prompting window.
And outputting the prompt animation in the prompt window, so that a user can visually know the optimization processing process of the terminal through the prompt animation in the prompt window, and the user perception and the intuitiveness of the optimization processing process are effectively improved.
S212, monitoring the display duration of the prompt window. The display duration of the prompt window can be timed from outputting the mask display layer, or from the moment when the prompt window is displayed in the mask display layer.
S213, when the display duration of the prompt window reaches the preset duration, closing the mask display layer to stop displaying the prompt window.
The preset time duration can be set according to actual needs, for example: the preset time period may be set to 2s, 3s, and so on. And when the display duration of the prompt window reaches a preset duration, closing the mask display layer to stop displaying the prompt window, wherein no mask is arranged on the access window of the target application program, so that the use of the access window of the target application program by a user is not influenced, and the use experience of the user is improved.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
The structure and function of the optimization processing device of the terminal according to the embodiment of the present invention will be described in detail with reference to fig. 3 to 5. The following devices may be an application program having an optimized processing capability in a terminal, for example: security applications, system management applications, system acceleration applications, etc. in a terminal in which the apparatus may be installed and operated for performing the methods of fig. 1-2 described above.
Fig. 3 is a schematic structural diagram of an optimization processing apparatus of a terminal according to an embodiment of the present invention; the apparatus may include: an optimization processing unit 101, an information generating unit 102, a mask display unit 103, and a prompt unit 104.
The optimization processing unit 101 is configured to perform optimization processing on an operating system of the terminal when an access request to a target application in the terminal is detected.
The target application program can be any application program installed and running in the terminal, including but not limited to: an instant messaging application, an SNS application, a gaming application, a security application, and the like. The user may access applications in the terminal, such as: the user can click a shortcut icon of a target application program on a terminal desktop to access the target application program; alternatively, the user may select a target application among a list of applications in the terminal to access the target application. The optimization processing unit 101 confirms that an access request to the target application is detected when the above-described access operation such as clicking or selection by the user is detected. In response to the above access operation of the user, the terminal needs to start the target application program, in the embodiment of the present invention, the starting process of the target application program and the optimization processing process of the terminal may be executed in parallel, and the optimization processing process of the terminal does not affect or interfere with the use of the target application program. The optimization processing can comprise at least one of process cleaning, CPU frequency modulation, garbage file cleaning, redundancy cleaning and memory release optimization. The optimization processing unit 101 performs optimization processing on the terminal operating system, so that memory occupation and CPU consumption in the terminal operating system can be reduced, and the response rate of the terminal operating system is increased, thereby improving the system performance of the terminal operating system.
And an information generating unit 102, configured to generate optimization prompt information according to the processing procedure of the optimization processing.
Wherein the optimization hint information may include, but is not limited to: at least one of prompt information for starting optimization processing, prompt information for finishing optimization processing, prompt information of optimization results and prompt information of optimization completion rate; for example: the optimization prompt information may be "memory acceleration in progress", "memory acceleration completed", and the memory reaches an optimal value ", and the like.
A mask display unit 103, configured to display a prompt window in an operating system of the terminal in a mask manner on an access window of the target application.
And responding to the access operation of the user to the target application program, wherein the terminal needs to start the target application program and output an access window of the target application program, and the access window of the target application program can be used for displaying an interactive interface of the target application program. In the embodiment of the present invention, the starting process of the target application and the optimization process of the terminal may be executed in parallel, and the optimization process of the terminal does not affect or interfere with the use of the target application, so that the mask display unit 103 may display the prompt window in the operating system of the terminal in a mask manner on the access window of the target application, that is, simultaneously output the access window of the target application and the prompt window in the operating system of the terminal, and superimpose the prompt window on the access window of the target application. The prompt window can be a user-defined window in an operating system of the terminal, and the display of the prompt window can be controlled according to attribute information, including display optimization level, transparency and the like, of the prompt window by configuring the attribute information of the prompt window.
And the prompt unit 104 is configured to output the optimization prompt information in the prompt window.
The prompt unit 104 outputs the optimized prompt information in the prompt window, for example: the optimization prompt information can be memory acceleration, memory acceleration completion, optimal memory value achievement and the like, a user can read the content of the optimization prompt information from the prompt window and obtain the optimization processing process, and the optimization prompt information is output through the prompt window, so that the user perception and intuition of the optimization processing process are effectively improved.
Referring again to fig. 3, optionally, the apparatus may further include: a listening unit 105, a configuration unit 106 and a display monitoring unit 107.
The monitoring unit 105 is configured to monitor a start event of at least one application in the terminal, and determine that an access request for a target application is detected when the start event of the target application in the at least one application is monitored.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. The user may access applications in the terminal, such as: the user can click a shortcut icon of an application program on the terminal desktop to access the application program; alternatively, the user may select an application from a list of applications in the terminal to access the application. In response to the above-mentioned access operation, such as clicking or selecting, by the user, the terminal needs to start the operated application, and the listening unit 105 may listen to a start event of at least one application in the terminal. If the starting event of the target application program in the at least one application program is monitored, indicating that the user performs the access operation on the target application program, determining that the access request for the target application program is detected according to the monitored starting event of the target application program. It should be noted that the target application may be any application installed and running in the terminal.
A configuring unit 106, configured to configure attribute information of a prompt window in an operating system of the terminal, where the attribute information includes: display priority and transparency; the display priority includes: a system alert level or a system error level; the range of the transparency is 0% -100%.
The prompt window can be a user-defined window in an operating system of the terminal, and the display of the prompt window can be controlled according to the attribute information by configuring the attribute information of the prompt window. The attribute information may include, but is not limited to: display priority and transparency. The display priority may be used to determine whether the prompt window is displayed in a mask manner, and if the prompt window is displayed in a mask manner, the display priority of the prompt window may be configured to be the highest level of an operating system of the terminal, so that the prompt window can be covered or superimposed on an access window of any application program, and therefore, the display priority may include: a SYSTEM ALERT (SYSTEM _ ALERT) level or a SYSTEM ERROR (SYSTEM _ ERROR) level. The transparency can be used for determining the masking degree of the prompt window, and if the prompt window is required to be a full-transparency mask, the transparency of the prompt window can be configured to be 100%; if the prompt window is required to be a non-transparent mask, the transparency of the prompt window may be configured to be 0%, and thus, the range of the transparency is 0% to 100%. It is understood that the attribute information of the prompt window may also include other information, such as display size, etc., for example: if the prompt window is required to be displayed in a full screen mode, the display size of the prompt window can be configured to be the screen size of the terminal; therefore, the display size of the prompt window ranges from 0 to the terminal screen size.
And the display monitoring unit 107 is used for monitoring the display duration of the prompt window, and closing the mask display layer to stop displaying the prompt window when the display duration of the prompt window reaches a preset duration.
The display duration of the prompt window can be timed from outputting the mask display layer, or from the moment when the prompt window is displayed in the mask display layer. The preset time duration can be set according to actual needs, for example: the preset time period may be set to 2s, 3s, and so on. And when the display duration of the prompt window reaches a preset duration, closing the mask display layer to stop displaying the prompt window, wherein no mask is arranged on the access window of the target application program, so that the use of the access window of the target application program by a user is not influenced, and the use experience of the user is improved.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
Please refer to fig. 4, which is a schematic structural diagram of the mask display unit shown in fig. 3 according to an embodiment; the mask display unit 103 may include: a creation unit 1001, an overlay output unit 1002, a cue window calling unit 1003, and a cue window display unit 1004.
A creating unit 1001 configured to create a mask display layer in the terminal.
The mask display layer, which may also be referred to as a mask layer, may refer to a layer overlying a masked window for displaying the masked window. The creating unit 1001 may create a mask display layer in the terminal using an image layer creation tool such as a LightBox.
An overlay output unit 1002, configured to display the access window of the target application program, and output the mask display layer on top of the window of the target application program.
And responding to the access operation of the user to the target application program, wherein the terminal needs to start the target application program and output an access window of the target application program, and the access window of the target application program can be used for displaying an interactive interface of the target application program. In this embodiment of the present invention, the starting process of the target application and the optimization process of the terminal may be executed in parallel, and the optimization process of the terminal does not affect or interfere with the use of the target application, so that the overlay output unit 1002 outputs the mask display layer on the window of the target application while displaying the access window of the target application.
A prompt window calling unit 1003, configured to call an API interface opened by an operating system of the terminal, to obtain the prompt window.
The prompt window may be a user-defined window in the terminal operating system, the terminal operating system may open and obtain an API interface of the prompt window, and the prompt window calling unit 1003 may call the API interface opened by the terminal operating system to obtain the prompt window.
And a prompt window display unit 1004, configured to display a prompt window in the operating system of the terminal in the mask display layer according to the attribute information of the prompt window.
The attribute information may include, but is not limited to: display priority and transparency. The display priority may be used to determine whether the prompt window is displayed in a mask manner, and if the prompt window is displayed in a mask manner, the display priority of the prompt window may be configured to be the highest level of an operating system of the terminal, so that the prompt window can be covered or superimposed on an access window of any application program, and therefore, the display priority may include: a SYSTEM ALERT (SYSTEM _ ALERT) level or a SYSTEM ERROR (SYSTEM _ ERROR) level. The transparency can be used for determining the masking degree of the prompt window, and if the prompt window is required to be a full-transparency mask, the transparency of the prompt window can be configured to be 100%; if the prompt window is required to be a non-transparent mask, the transparency of the prompt window may be configured to be 0%, and thus, the range of the transparency is 0% to 100%. The prompt window display unit 1004 controls the display of the prompt window according to the attribute information of the prompt window, for example: if the display priority of the prompt window is a SYSTEM warning (System _ ALERT) level or a SYSTEM ERROR (System _ ERROR) level, controlling the prompt window to be displayed on the mask display layer; further, if the transparency of the prompt window is 50%, controlling the prompt window to be displayed as a semi-transparent mask.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
Please refer to fig. 5, which is a schematic structural diagram of the embodiment of the cue unit shown in fig. 3; the prompting unit 104 may include: an animation processing unit 2001 and an animation output unit 2002.
An animation processing unit 2001, configured to process the optimized hint information into a hint animation.
In a specific implementation, the optimized hint information can be processed into hint animations according to animation rules such as Flash, flv, and the like, for example: assuming that the optimization hint information includes: "the memory is accelerated", "the memory is accelerated and completed, and the memory reaches an optimal value", the animation processing unit 2001 may process the optimization prompt information into a rotating animation according to a flash animation production rule, and visually display the content of the optimization prompt information through the rotating animation.
An animation output unit 2002 for outputting the prompt animation in the prompt window.
And outputting the prompt animation in the prompt window, so that a user can visually know the optimization processing process of the terminal through the prompt animation in the prompt window, and the user perception and the intuitiveness of the optimization processing process are effectively improved.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
The embodiment of the present invention also discloses a terminal, which may include an optimization processing device of the terminal, and the structure and function of the device may refer to the related description of the embodiments shown in fig. 3 to fig. 5, which is not described herein again. In a specific implementation, the apparatus may be an application program with optimized processing capability in the terminal, for example: security applications in the terminal, system management applications, system acceleration applications, etc. It should be noted that the terminal disclosed in this embodiment can also be applied to the methods shown in fig. 1 to fig. 2.
According to the method and the device for optimizing the operating system of the terminal, when the access request of the target application program in the terminal is detected, the operating system of the terminal is optimized, the prompt window in the operating system of the terminal is displayed on the access window of the target application program in a shading mode, and the optimization prompt information related to the optimization processing process is output in the prompt window.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (14)
1. An optimization processing method for a terminal, comprising:
when an access request for a target application program in a terminal is detected, optimizing an operating system of the terminal; the target application program is started to respond to the access request, the starting process of the target application program is executed in parallel with the optimization processing process, and the optimization processing process does not interfere with the use of the target application program;
generating optimization prompt information according to the processing process of the optimization processing;
displaying a prompt window in an operating system of the terminal in a shading mode on an access window of the target application program; the prompt window is a user-defined window in an operating system of the terminal, and is displayed in the shade display layer; the attribute information of the prompt window comprises display priority and transparency; the display priority comprises a system warning level or a system error level; the range of the transparency is 0% -100%;
outputting the optimized prompt information in the prompt window;
monitoring the display duration of the prompt window;
and when the display duration of the prompt window reaches a preset duration, closing the mask display layer to stop displaying the prompt window.
2. The method of claim 1, wherein before performing optimization processing on an operating system of a terminal when an access request for a target application in the terminal is detected, further comprising:
monitoring a starting event of at least one application program in the terminal;
when a starting event of a target application program in the at least one application program is monitored, determining that an access request to the target application program is detected.
3. The method of claim 1, wherein prior to maskable displaying a prompt window in an operating system of the terminal over an access window of the target application, further comprising:
and configuring attribute information of a prompt window in an operating system of the terminal.
4. The method of claim 3, wherein the matte-displaying of a prompt window in an operating system of the terminal over an access window of the target application comprises:
creating a mask display layer in the terminal;
displaying an access window of the target application program and outputting the mask display layer on top of the window of the target application program;
calling an API (application program interface) opened by an operating system of the terminal to acquire the prompt window;
and displaying the prompt window in the operating system of the terminal in the shade display layer according to the attribute information of the prompt window.
5. The method of any of claims 1-4, wherein the optimization process comprises: at least one of process cleaning, CPU frequency modulation, garbage file cleaning, redundancy cleaning and memory release optimization;
the optimization prompt information comprises: and at least one of prompt information for starting optimization processing, prompt information for finishing optimization processing, prompt information of optimization results and prompt information of optimization completion rate.
6. The method of claim 5, wherein outputting the optimized hint information in the hint window comprises:
processing the optimized prompt information into prompt animation;
and outputting the prompt animation in the prompt window.
7. An apparatus for optimizing a terminal, comprising:
the optimization processing unit is used for optimizing an operating system of the terminal when an access request of a target application program in the terminal is detected; the target application program is started to respond to the access request, the starting process of the target application program is executed in parallel with the optimization processing process, and the optimization processing process does not interfere with the use of the target application program;
the information generating unit is used for generating optimization prompt information according to the processing process of the optimization processing;
the shading display unit is used for displaying a prompt window in an operating system of the terminal in a shading mode on an access window of the target application program; the prompt window is a user-defined window in an operating system of the terminal, and is displayed in the shade display layer; the attribute information of the prompt window comprises display priority and transparency; the display priority comprises a system warning level or a system error level; the range of the transparency is 0% -100%;
the prompting unit is used for outputting the optimized prompting information in the prompting window;
and the display monitoring unit is used for monitoring the display duration of the prompt window and closing the mask display layer to stop displaying the prompt window when the display duration of the prompt window reaches the preset duration.
8. The apparatus of claim 7, further comprising:
the monitoring unit is used for monitoring a starting event of at least one application program in the terminal and determining that an access request to a target application program is detected when the starting event of the target application program in the at least one application program is monitored.
9. The apparatus of claim 7, further comprising:
and the configuration unit is used for configuring the attribute information of the prompt window in the operating system of the terminal.
10. The apparatus of claim 9, wherein the mask display unit comprises:
a creating unit, configured to create a mask display layer in the terminal;
the covering output unit is used for displaying the access window of the target application program and outputting the mask display layer on the window of the target application program;
the prompt window calling unit is used for calling an API (application program interface) opened by an operating system of the terminal to acquire the prompt window;
and the prompt window display unit is used for displaying a prompt window in an operating system of the terminal in the shade display layer according to the attribute information of the prompt window.
11. The apparatus of any of claims 7-10, wherein the optimization process comprises: at least one of process cleaning, CPU frequency modulation, garbage file cleaning, redundancy cleaning and memory release optimization;
the optimization prompt information comprises: and at least one of prompt information for starting optimization processing, prompt information for finishing optimization processing, prompt information of optimization results and prompt information of optimization completion rate.
12. The apparatus of claim 11, wherein the prompting unit comprises:
the animation processing unit is used for processing the optimized prompt information into prompt animation;
and the animation output unit is used for outputting the prompt animation in the prompt window.
13. A terminal characterized by comprising the optimization processing means of the terminal according to any of claims 7-12.
14. A computer-readable storage medium, characterized in that a program is stored therein, the program being used to execute the optimization processing method of the terminal according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204350.4A CN106155870B (en) | 2015-04-27 | 2015-04-27 | Terminal optimization processing method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204350.4A CN106155870B (en) | 2015-04-27 | 2015-04-27 | Terminal optimization processing method and device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106155870A CN106155870A (en) | 2016-11-23 |
CN106155870B true CN106155870B (en) | 2020-02-28 |
Family
ID=57347500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510204350.4A Active CN106155870B (en) | 2015-04-27 | 2015-04-27 | Terminal optimization processing method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155870B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391208B (en) * | 2017-08-04 | 2021-01-26 | 维沃移动通信有限公司 | Game starting method and mobile terminal |
CN107729145A (en) * | 2017-10-11 | 2018-02-23 | 广东欧珀移动通信有限公司 | Application program progress control method and device |
CN108600498B (en) * | 2018-02-27 | 2021-02-02 | 维沃移动通信有限公司 | Information prompting method and device |
CN110096348A (en) * | 2019-03-29 | 2019-08-06 | 努比亚技术有限公司 | Background application control method, wearable device and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770385A (en) * | 2010-02-04 | 2010-07-07 | 青岛海信移动通信技术股份有限公司 | Device based on Linux system and method thereof for starting application |
CN103019778A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Startups cleaning method and device |
CN103220427A (en) * | 2013-04-16 | 2013-07-24 | 广东欧珀移动通信有限公司 | Mobile phone background program cleaning method and mobile phone |
CN103679777A (en) * | 2012-09-07 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for realizing page mask |
CN104038830A (en) * | 2013-03-07 | 2014-09-10 | 中兴通讯股份有限公司 | Application processing method and application processing device |
CN104142828A (en) * | 2014-07-30 | 2014-11-12 | 北京奇虎科技有限公司 | Application accelerating method and device |
-
2015
- 2015-04-27 CN CN201510204350.4A patent/CN106155870B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770385A (en) * | 2010-02-04 | 2010-07-07 | 青岛海信移动通信技术股份有限公司 | Device based on Linux system and method thereof for starting application |
CN103679777A (en) * | 2012-09-07 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for realizing page mask |
CN103019778A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Startups cleaning method and device |
CN104038830A (en) * | 2013-03-07 | 2014-09-10 | 中兴通讯股份有限公司 | Application processing method and application processing device |
CN103220427A (en) * | 2013-04-16 | 2013-07-24 | 广东欧珀移动通信有限公司 | Mobile phone background program cleaning method and mobile phone |
CN104142828A (en) * | 2014-07-30 | 2014-11-12 | 北京奇虎科技有限公司 | Application accelerating method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106155870A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11449220B2 (en) | Electronic device including touch sensitive display and method for managing the display | |
KR102497195B1 (en) | A mehtod for processing contents, an electronic device and a storage medium therefor | |
US9973506B2 (en) | Method and apparatus for clearing notification icon, and storage medium | |
CN106507445B (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
US20180329055A1 (en) | Method and apparatus for detecting that a device is immersed in a liquid | |
US10732793B2 (en) | Apparatus and method for providing information via portion of display | |
CN106951335B (en) | Process daemon method and mobile terminal | |
CN106155870B (en) | Terminal optimization processing method and device and terminal | |
EP2669788A1 (en) | Mobile terminal and controlling method thereof | |
CN106970735B (en) | Information processing method and electronic equipment | |
WO2019047728A1 (en) | Method for opening shortcut function, device, mobile terminal, and storage medium | |
EP3584710B1 (en) | Method and apparatus for controlling display of mobile terminal, and storage medium | |
CN108984089B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN110413179B (en) | Method and equipment for presenting session message | |
CN111767554A (en) | Screen sharing method and device, storage medium and electronic equipment | |
KR20170035502A (en) | Display apparatus and Method for controlling the display apparatus thereof | |
CN103309575A (en) | Image display method and terminal | |
CN106557250A (en) | A kind of blank screen treating method and apparatus in a mobile device | |
CN107239169A (en) | A kind of control method and device of touch-screen touch controllable function | |
CN107562356B (en) | Fingerprint identification positioning method and device, storage medium and electronic equipment | |
CN106155676B (en) | Access control method and device for application program and terminal | |
CN112099702A (en) | Application running method and device and electronic equipment | |
CN110868347A (en) | Message prompting method, device and system | |
CN115688102A (en) | Window processing method and device, processor and electronic equipment | |
CN105843357A (en) | Method of maintaining normal application operation in power-saving management and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |