CN111026486B - Application sorting method, application sorting device and computer readable storage medium - Google Patents

Application sorting method, application sorting device and computer readable storage medium Download PDF

Info

Publication number
CN111026486B
CN111026486B CN201911217377.1A CN201911217377A CN111026486B CN 111026486 B CN111026486 B CN 111026486B CN 201911217377 A CN201911217377 A CN 201911217377A CN 111026486 B CN111026486 B CN 111026486B
Authority
CN
China
Prior art keywords
application
control logic
target
target application
running
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
CN201911217377.1A
Other languages
Chinese (zh)
Other versions
CN111026486A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911217377.1A priority Critical patent/CN111026486B/en
Publication of CN111026486A publication Critical patent/CN111026486A/en
Application granted granted Critical
Publication of CN111026486B publication Critical patent/CN111026486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses an application sequencing method, an application sequencing device and a computer readable storage medium, wherein the application sequencing method is applied to a mobile terminal and comprises the following steps: sending state acquisition information to a running target application to acquire a feedback state of the target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. When a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore user experience is improved.

Description

Application sorting method, application sorting device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile terminal application technologies, and in particular, to an application sorting method, an application sorting apparatus, and a computer-readable storage medium.
Background
With the development of mobile terminal technology, the application market of mobile terminals is gradually becoming larger, various applications full of precious things are on line, and even the same function can be downloaded to different applications. On the other hand, in recent years, the memory technology of the mobile terminal is improved, the memory price of the mobile terminal is further reduced, the memory capacity of more and more mobile terminals becomes considerable, the models of 64G/128G mobile terminals are more, and the large memory space can enable users to install more applications. When a user uses a mobile terminal, the user often runs a plurality of installed applications at the same time, for example, the user simultaneously starts functions of WeChat chat, music playing, e-mail, and the like, and in actual use, it is also common to simultaneously start dozens of applications. When so many applications run simultaneously, the running priority arrangement is to be reasonably planned so as to make the application running more efficient.
Disclosure of Invention
The invention provides an application sequencing method, an application sequencing device and a computer readable storage medium, which can further reasonably plan an application running sequence, improve the program execution efficiency of a mobile terminal and avoid the problem of crash.
In order to solve the above problem, in a first aspect, the present application provides an application ranking method, where the application ranking method is applied to a mobile terminal, and the application ranking method includes:
sending state acquisition information to a running target application to acquire a feedback state of the target application;
acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state;
determining a target control logic according to the first time and the second time of the target application;
and sequencing the target applications according to the target control logic.
Wherein, the application ordering method further comprises:
all running applications are searched and the target application is determined from all running applications.
Wherein the determining a target control logic according to the first time and the second time of the target application comprises:
acquiring a difference value between a second moment and a first moment of the target application;
judging whether prestored control logic matched with the difference value is stored or not, wherein different difference values correspond to different prestored control logic;
and if the pre-stored control logic matched with the difference value is stored, determining the pre-stored control logic matched with the difference value as the target control logic.
The sending state acquisition information to the running target application to acquire the feedback state of the target application includes:
and sending state acquisition information to the running target application for multiple times to acquire the feedback state of the target application for multiple times.
Wherein the obtaining a first time when the state acquisition information is sent to the target application and a second time when the target application is in a feedback state comprises:
and respectively acquiring a plurality of first moments when the state acquisition information is sent to the target application for a plurality of times, and respectively acquiring a plurality of second moments when the target application is in a plurality of feedback states.
Wherein the determining a target control logic according to the first time and the second time of the target application comprises:
respectively obtaining a plurality of difference values of a second moment when the target application is in a multi-feedback state and a first moment obtained by the current sending state;
calculating an average difference value of a plurality of said difference values;
judging whether prestored control logic matched with the average difference value is stored or not, wherein different average difference values correspond to different prestored control logic;
and if the prestored control logic matched with the average difference value is stored, determining the prestored control logic matched with the average difference value as the target control logic.
In order to solve the above problem, in a second aspect, the present application provides an application sorting apparatus, where the application sorting apparatus is applied to a mobile terminal, and the application sorting apparatus includes:
the state acquisition module is used for sending state acquisition information to a running target application to acquire a feedback state of the target application;
the time acquisition module is used for acquiring a first time when the state acquisition information is sent to the target application and acquiring a second time when the target application is in a feedback state;
the determining module is used for determining target control logic according to the first time and the second time of the target application;
and the sequencing module is used for sequencing the target application according to the target control logic.
The application sequencing device further comprises a difference value acquisition module, a control logic storage module and a judgment module;
the difference value obtaining module is used for obtaining the difference value between the second moment and the first moment of the target application;
the judging module is used for judging whether a prestored control logic matched with the difference value is stored or not;
the control logic storage module is used for storing the pre-stored control logic with different difference values corresponding to different differences;
the determining module is further configured to determine, when a pre-stored control logic matching the difference is stored, the pre-stored control logic matching the difference as the target control logic.
The application sequencing device further comprises a difference value acquisition module, a difference value calculation module, a control logic storage module and a judgment module;
the state acquisition module is also used for sending state acquisition information to the running target application for multiple times so as to acquire the feedback state of the target application for multiple times;
the time acquisition module is further configured to respectively acquire a plurality of first times when the state acquisition information is sent to the target application for a plurality of times, and respectively acquire a plurality of second times when the target application is in a plurality of feedback states;
the difference value acquisition module is used for respectively acquiring a plurality of difference values of a second moment when the target application is in a multi-feedback state and a first moment acquired by the current sending state;
the difference value calculating module is used for calculating an average difference value of a plurality of difference values;
the judging module is used for judging whether prestored control logic matched with the average difference value is stored or not;
the control logic storage module is used for storing the pre-stored control logic with different difference values corresponding to different differences;
the determining module is further configured to determine, as the target control logic, a prestored control logic matching the average difference value when the prestored control logic matching the average difference value is stored.
In order to solve the above problem, in a third aspect, the present application provides a computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the application sequencing method described above.
The beneficial effect of this application is:
when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first embodiment of an application ranking method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a second embodiment of an application ranking method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a third embodiment of an application ranking method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a first embodiment of an application sequencing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a second embodiment of an application sequencing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered limiting of the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The application provides an application sorting method, an application sorting device and a computer readable storage medium, wherein the application sorting method is applied to a mobile terminal and comprises the following steps: sending state acquisition information to a running target application to acquire a feedback state of the target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. The following are detailed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first embodiment of an application sorting method according to the present application. The application sorting method in the embodiment can be applied to a mobile terminal, and the mobile terminal can be an intelligent device such as a smart phone, a smart watch, an ipad, a tablet computer and the like, which is not limited in the application. The specific flow of the application sorting method may be as follows:
s11, sending state acquisition information to the running target application to acquire the feedback state of the target application.
In this embodiment, when a user opens the method for sorting applications of a mobile terminal according to the present invention, all running applications that are searched are recorded, and it is assumed that the running applications are running application 1, running application 2, running application 3, \8230;, and running application N, where N is a natural number. The target application is determined from all running applications by searching all running applications (running application 1, running application 2, running application 3, \8230; running application N).
S12, a first time when the state acquisition information is sent to the target application is obtained, and a second time when the target application is in a feedback state is obtained.
In this embodiment, for example, it is determined that the target application is application 1, the current time T1 (the first time) is obtained, and a piece of status acquisition information is sent to the running application 1, and if the running application 1 receives the status acquisition information, a status is fed back to the mobile terminal. When the target application feeds back the state, the current time T2 (second time) is acquired.
And S13, determining a target control logic according to the first time and the second time of the target application.
In this embodiment, according to the correlation between T2 and T1, for example, T2-T1 represents a time delay from when the mobile terminal of the user sends a state acquisition message to the running application 1 to when the mobile terminal receives a response state result of the running application 1, where a smaller time delay indicates that the application runs better, and the target control logic is determined by the time delay.
And S14, sequencing the target application according to the target control logic.
In this embodiment, the obtained time delays of all running applications are sorted from small to large, and the smaller the time delay is, the better the running of the application is.
Different from the prior art, the application provides an application sequencing method, which is applied to a mobile terminal, and comprises the following steps: sending state acquisition information to a running target application to acquire a feedback state of the target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. According to the application, when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore the user experience is improved.
For a more clear description of the application sorting method of the present application, please refer to fig. 2, and fig. 2 is a flowchart illustrating a second embodiment of the application sorting method according to the present application.
As shown in fig. 2, the specific flow of the application sorting method is as follows:
s21, sending state acquisition information to the running target application to acquire the feedback state of the target application.
In this embodiment, when a user opens the method for sorting applications of a mobile terminal according to the present invention, all running applications that are searched are recorded, and it is assumed that the running applications are running application 1, running application 2, running application 3, \8230;, and running application N, where N is a natural number. The target application is determined from all running applications by searching all running applications (running application 1, running application 2, running application 3, \8230; running application N).
S22, acquiring a first time when the state acquisition information is sent to the target application, and acquiring a second time when the target application is in a feedback state.
In this embodiment, for example, it is determined that the target application is application 1, the current time T1 (the first time) is obtained, and a piece of status acquisition information is sent to the running application 1, and if the running application 1 receives the status acquisition information, a status is fed back to the mobile terminal. When the target application feeds back the state, the current time T2 (second time) is acquired.
And S23, acquiring a difference value between the second moment and the first moment of the target application.
In this embodiment, T2-T1 represents a time delay from when the mobile terminal of the user sends a state acquisition message to the running application 1 to when the mobile terminal receives a state result of the running application 1 in response to the state result, and the smaller the time delay, the better the running of the application is, and the target control logic is determined by the time delay.
And S24, judging whether pre-stored control logics matched with the difference values are stored, wherein different difference values correspond to different pre-stored control logics. If the pre-stored control logic matching the difference is stored, step S25 is executed, and if the pre-stored control logic matching the difference is not stored, step S26 is executed.
In this embodiment, if the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result of the running application 1 response is recorded as 16s; and if the state feedback of the running application 1 is received within the specified time, namely T2-T1 is less than or equal to 16s, determining a second time T2.
And S25, determining the prestored control logic matched with the difference value as the target control logic.
In this embodiment, if the state feedback of the running application 1 is received within the specified time, it is proved that the feedback of the target application is not overtime, and the target control logic is determined through time delay.
And S26, sending out prompt information.
In this embodiment, if the pre-stored control logic matching the difference is not stored, it indicates that the difference is not within the range of the stored valid difference, and it may be considered that the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, then it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result of the running application 1 response is recorded as 16s, and a prompt message is sent.
In a specific embodiment, the manner of sending the prompt message may be a voice prompt, a blinking prompt, a vibration prompt, and the like, which is not limited in this application.
S27, sequencing the target application according to the target control logic.
In this embodiment, the obtained time delays of all running applications are sorted from small to large, and the smaller the time delay is, the better the running of the application is.
Different from the prior art, the application provides an application sequencing method, which is applied to a mobile terminal, and comprises the following steps: sending state acquisition information to a running target application to acquire a feedback state of the target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. According to the application, when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a third embodiment of an application ranking method according to the present invention.
As shown in fig. 3, the specific flow of the application sorting method is as follows:
and S31, sending state acquisition information to the running target application for multiple times to acquire the feedback state of the target application for multiple times.
In this embodiment, in order to make the result more reliable, the mobile terminal may repeatedly send the state acquisition information to the running target application to acquire the feedback state of the target application for multiple times. A plurality of state acquisition instructions are sent to the running application 1. When a user opens the application sorting method of the mobile terminal, all searched running applications are recorded, and the running applications are assumed to be a running application 1, a running application 2, a running application 3, \8230 \ 8230;, and a running application N, wherein N is a natural number. The target application is determined from all running applications by searching all running applications (running application 1, running application 2, running application 3, \8230; running application N).
And S32, respectively acquiring a plurality of first moments when the state acquisition information is sent to the target application for a plurality of times, and respectively acquiring a plurality of second moments when the target application is in a plurality of feedback states.
In this embodiment, for example, it is determined that the target application is application 1, the current time T1 (the first time) is obtained, and a piece of status acquisition information is sent to the running application 1, and if the running application 1 receives the status acquisition information, a status is fed back to the mobile terminal. When the target application feeds back the state, the current time T2 (second time) is acquired.
And S33, respectively obtaining a plurality of difference values between the second time when the target application is in the multi-feedback state and the first time obtained in the current sending state.
In this embodiment, T2-T1 represents a time delay from when the mobile terminal of the user sends a state acquisition message to the running application 1 to when the mobile terminal receives a response state result of the running application 1, where a smaller time delay indicates that the application runs better, and a target control logic is determined by the time delay.
And S34, calculating an average difference value of the difference values.
In this embodiment, the time delays T2 to T1 are calculated respectively, and these time delays are averaged finally. The same status acquisition information is simultaneously transmitted to all running applications (running application 1, running application 2, running application 3, \8230;, running application N), and steps S31 to S33 are respectively and simultaneously and repeatedly performed for all running applications.
S35, judging whether prestored control logic matched with the average difference value is stored or not, wherein different average difference values correspond to different prestored control logic; if a pre-stored control logic matching the average difference value is stored, step S36 is performed, and if no pre-stored control logic matching the average difference value is stored, step S37 is performed.
In this embodiment, if the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result of the running application 1 response is recorded as 16s; and if the state feedback of the running application 1 is received within the specified time, namely T2-T1 is less than or equal to 16s, determining a second time T2.
And S36, determining the prestored control logic matched with the average difference value as the target control logic.
In this embodiment, if the state feedback of the running application 1 is received within the specified time, it is proved that the feedback of the target application is not overtime, and the target control logic is determined through time delay.
And S37, sending out prompt information.
In this embodiment, if the prestored control logic matching the average difference value is not stored, it indicates that the average difference value is not within the stored effective average difference value range, and it may be considered that the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the running application 1 response state result is recorded as 16s, and a prompt message is sent.
In a specific embodiment, the manner of sending the prompt message may be a voice prompt, a blinking prompt, a vibration prompt, and the like, which is not limited in this application.
And S38, sequencing the target applications according to the target control logic.
In this embodiment, the obtained time delays of all running applications are sorted from small to large, and the smaller the time delay is, the better the running of the application is.
Different from the prior art, the application provides an application sequencing method, the application sequencing method is applied to a mobile terminal, and the application sequencing method comprises the following steps: sending state acquisition information to a running target application to acquire a feedback state of the target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. According to the application, when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore user experience is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a first embodiment of an application sorting apparatus according to an embodiment of the present disclosure. As shown in fig. 4, the application ranking apparatus 600 is applied to a mobile terminal, and the application ranking apparatus 600 includes: a state obtaining module 601, a time obtaining module 602, a determining module 607, a sorting module 608, a difference value obtaining module 603, a control logic storage module 606, and a determining module 605, wherein:
the state obtaining module 601 sends state obtaining information to a running target application to obtain a feedback state of the target application.
In this embodiment, when the user opens the method for ranking applications of a mobile terminal according to the present invention, all searched running applications are recorded, and it is assumed that the running applications are running application 1, running application 2, running application 3, \8230;, and running application N, where N is a natural number. The target application is determined from all running applications by searching all running applications (running application 1, running application 2, running application 3, \8230; running application N).
The time obtaining module 602 obtains a first time when the state obtaining information is sent to the target application, and obtains a second time when the target application feeds back the state.
In this embodiment, for example, it is determined that the target application is application 1, the current time T1 (the first time) is obtained, and a piece of status acquisition information is sent to the running application 1, and if the running application 1 receives the status acquisition information, a status is fed back to the mobile terminal. When the target application feeds back the state, the current time T2 (second time) is acquired.
The difference obtaining module 603 obtains a difference between the second time and the first time of the target application.
In this embodiment, T2-T1 represents a time delay from when the mobile terminal of the user sends a state acquisition message to the running application 1 to when the mobile terminal receives a state result of the running application 1 in response to the state result, and the smaller the time delay, the better the running of the application is, and the target control logic is determined by the time delay.
The decision block 605 determines whether there is a pre-stored control logic matching the difference.
The control logic storage module 606 is configured to store the pre-stored control logic corresponding to different differences.
In this embodiment, if the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result of the running application 1 response is recorded as 16s; and if the state feedback of the running application 1 is received within the specified time, namely T2-T1 is less than or equal to 16s, determining a second time T2.
When the determining module 607 stores the pre-stored control logic matching with the difference, the pre-stored control logic matching with the difference is determined as the target control logic.
In this embodiment, if the state feedback of the running application 1 is received within the specified time, it is proved that the feedback of the target application is not overtime, and the target control logic is determined through time delay. If the prestored control logic matched with the difference is not stored, the difference is not in the range of the stored effective difference, the state result of the running application 1 response is not received within the specified time (such as 16 seconds), namely T2-T1 is greater than 16s, the time is considered to be overtime, the time delay from the mobile terminal of the user to the mobile terminal to receive the running application 1 response state result is recorded as 16s, and the prompt message is sent.
In a specific embodiment, the manner of sending the prompt message may be a voice prompt, a blinking prompt, a vibration prompt, and the like, which is not limited in this application.
The ranking module 608 ranks the target applications according to the target control logic.
In this embodiment, the obtained delays of all running applications are sorted from small to large, and the smaller the delay is, the better the running of the application is.
Different from the prior art, the application sequencing device is applied to a mobile terminal, and the feedback state of a target application is obtained by sending state obtaining information to the running target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. According to the application, when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore the user experience is improved.
Please refer to fig. 5, wherein fig. 5 is a schematic structural diagram of a second embodiment of an application sorting apparatus according to an embodiment of the present application. The application sorting device 600 is applied to a mobile terminal, and the application sorting device 600 includes: a state obtaining module 601, a time obtaining module 602, a determining module 607, a sorting module 608, a difference obtaining module 603, a difference calculating module 604, a control logic storage module 606, and a determining module 605, wherein:
the state acquisition module 601 sends state acquisition information to the running target application for multiple times to acquire the feedback state of the target application for multiple times.
In this embodiment, in order to make the result more reliable, the mobile terminal may repeatedly send the state acquisition information to the running target application to acquire the feedback state of the target application multiple times. A plurality of state acquisition instructions are sent to the running application 1. When a user opens the mobile terminal application sequencing method, all searched running applications are recorded, and the running applications are assumed to be a running application 1, a running application 2, a running application 3, a running application 8230, a running application N, wherein N is a natural number. The target application is determined from all running applications by searching all running applications (running application 1, running application 2, running application 3, \8230; running application N).
The time obtaining module 602 obtains a plurality of first times when the state obtaining information is sent to the target application for a plurality of times, and obtains a plurality of second times when the target application is in a feedback state for a plurality of times.
In this embodiment, for example, it is determined that the target application is application 1, current time T1 (first time) is obtained, and state acquisition information is sent to running application 1, and if running application 1 receives the state acquisition information, a state is fed back to the mobile terminal. When the target application feeds back the state, the current time T2 (second time) is acquired.
The difference obtaining module 603 obtains a plurality of differences between a second time when the target application is in the multi-feedback state and a first time obtained in the current sending state.
In this embodiment, T2-T1 represents a time delay from when the mobile terminal of the user sends a state acquisition message to the running application 1 to when the mobile terminal receives a state result of the running application 1 in response to the state result, and the smaller the time delay, the better the running of the application is, and the target control logic is determined by the time delay.
The difference calculation module 604 calculates an average difference of a plurality of the differences.
In this embodiment, the time delays T2 to T1 are calculated respectively, and these time delays are averaged finally. The same state acquisition information is simultaneously transmitted to all running applications (running application 1, running application 2, running application 3, \8230;, running application N).
The decision block 605 determines whether pre-stored control logic matching the average difference value is stored.
The control logic storage module 606 is configured to store the pre-stored control logic corresponding to different differences.
In this embodiment, if the state result of the running application 1 response is not received within a specified time (e.g., within 16 seconds), that is, T2-T1 is greater than 16s, it is considered as timeout, and the time delay from the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result of the running application 1 response is recorded as 16s; and if the state feedback of the running application 1 is received within the specified time, namely T2-T1 is less than or equal to 16s, determining a second time T2.
The determining module 607 determines the pre-stored control logic matching the average difference value as the target control logic when the pre-stored control logic matching the average difference value is stored.
In this embodiment, if the state feedback of the running application 1 is received within the specified time, it is proved that the feedback of the target application is not overtime, and the target control logic is determined through time delay. If the prestored control logic matched with the average difference value is not stored, the average difference value is not in the range of the stored effective average difference value, the state result responded by the running application 1 is not received within the specified time (such as 16 seconds), namely T2-T1 is more than 16s, the time is considered to be overtime, the time delay of the mobile terminal of the user sending a state acquisition instruction to the mobile terminal receiving the state result responded by the running application 1 is recorded as 16s, and the prompt message is sent.
In a specific embodiment, the manner of sending the prompt message may be a voice prompt, a blinking prompt, a vibration prompt, and the like, which is not limited in this application.
The ranking module 608 ranks the target applications according to the target control logic.
In this embodiment, the obtained delays of all running applications are sorted from small to large, and the smaller the delay is, the better the running of the application is.
Different from the prior art, the application sequencing device is applied to a mobile terminal, and the feedback state of a target application is obtained by sending state obtaining information to the running target application; acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state; determining a target control logic according to the first time and the second time of the target application; and sequencing the target applications according to the target control logic. According to the application, when a plurality of application programs run simultaneously in the mobile terminal, the application running sequence can be further reasonably planned, the program execution efficiency of the mobile terminal is improved, the problem of crash is avoided, and therefore the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 6, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
sending state acquisition information to a running target application to acquire a feedback state of the target application;
acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state;
determining a target control logic according to the first time and the second time of the target application;
and sequencing the target applications according to the target control logic.
Referring to fig. 7, fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. Fig. 7 is a block diagram illustrating a specific structure of a mobile terminal provided in an embodiment of the present application, where the mobile terminal 300 may be used to implement the application ranking method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network described above may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Mobile Communication (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless Fidelity (Wi-Fi) (e.g., IEEE802.1 a, 802.1 b, IEEE802.1 g and/or IEEE802.1 n), internet telephony (Voice over Internet Protocol, voIP), world wide interoperability for Microwave, wimax, other suitable protocols for instant messaging, and other suitable protocols, including any currently developed protocols for instant messaging, including those not yet developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the application sorting method and the terminal positioning device in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of positioning the terminal. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 300, which may be configured of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch event thereon or thereabout, it may be passed to processor 380 for determining the type of touch event, and processor 380 may then provide a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in fig. 5 touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 includes at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, through the transmission module 370 (e.g., wi-Fi module), may assist the user in e-mail, web browsing, streaming media access, etc., which provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
sending state acquisition information to a running target application to acquire a feedback state of the target application;
acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state;
determining a target control logic according to the first time and the second time of the target application;
and sequencing the target applications according to the target control logic.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the application sequencing methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any application sorting method provided in the embodiments of the present application, beneficial effects that can be achieved by any application sorting method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An application sequencing method is applied to a mobile terminal, and is characterized in that the application sequencing method comprises the following steps:
sending state acquisition information to a running target application to acquire a feedback state of the target application;
acquiring a first moment when state acquisition information is sent to the target application, and acquiring a second moment when the target application is in a feedback state;
determining a target control logic according to a difference value between the second moment and the first moment of the target application;
and sequencing the target applications according to the target control logic.
2. The application ranking method of claim 1, wherein the application ranking method further comprises:
all running applications are searched and the target application is determined from all running applications.
3. The method of claim 1, wherein determining the target control logic according to the first time and the second time of the target application comprises:
acquiring a difference value between a second moment and a first moment of the target application;
judging whether prestored control logic matched with the difference value is stored or not, wherein different difference values correspond to different prestored control logic;
and if the pre-stored control logic matched with the difference value is stored, determining the pre-stored control logic matched with the difference value as the target control logic.
4. The application sequencing method according to claim 1, wherein the sending state acquisition information to the running target application to acquire the feedback state of the target application comprises:
and sending state acquisition information to the running target application for multiple times to acquire the feedback state of the target application for multiple times.
5. The application sequencing method of claim 4, wherein the obtaining a first time when state acquisition information is sent to the target application and a second time when the target application is in a feedback state comprises:
and respectively acquiring a plurality of first moments when the state acquisition information is sent to the target application for a plurality of times, and respectively acquiring a plurality of second moments when the target application is in a feedback state for a plurality of times.
6. The application sequencing method of claim 5, wherein determining the target control logic according to the first time and the second time of the target application comprises:
respectively obtaining a plurality of difference values of a second moment when the target application is in a multi-feedback state and a first moment obtained by the current sending state;
calculating an average difference value of a plurality of said difference values;
judging whether prestored control logic matched with the average difference value is stored or not, wherein different average difference values correspond to different prestored control logic;
and if the prestored control logic matched with the average difference value is stored, determining the prestored control logic matched with the average difference value as the target control logic.
7. An application sequencing apparatus, wherein the application sequencing apparatus is applied to a mobile terminal, and the application sequencing apparatus comprises:
the state acquisition module is used for sending state acquisition information to a running target application to acquire a feedback state of the target application;
the time acquisition module is used for acquiring a first time when the state acquisition information is sent to the target application and acquiring a second time when the target application is in a feedback state;
the determining module is used for determining target control logic according to a difference value between the second moment and the first moment of the target application;
and the sequencing module is used for sequencing the target application according to the target control logic.
8. The application sorting device according to claim 7, further comprising a difference value obtaining module, a control logic storage module and a judging module;
the difference value obtaining module is used for obtaining the difference value between the second moment and the first moment of the target application;
the judging module is used for judging whether prestored control logic matched with the difference value is stored or not;
the control logic storage module is used for storing the pre-stored control logic with different difference values corresponding to different differences;
the determining module is further configured to determine, when a pre-stored control logic matching the difference is stored, the pre-stored control logic matching the difference as the target control logic.
9. The application sorting device according to claim 7, further comprising a difference value obtaining module, a difference value calculating module, a control logic storing module and a judging module;
the state acquisition module is further used for sending state acquisition information to the running target application for multiple times so as to acquire the feedback state of the target application for multiple times;
the time acquisition module is further configured to respectively acquire a plurality of first times when the state acquisition information is sent to the target application for a plurality of times, and respectively acquire a plurality of second times when the target application is in a plurality of feedback states;
the difference value acquisition module is used for respectively acquiring a plurality of difference values of a second moment when the target application is in a multi-feedback state and a first moment acquired by the current sending state;
the difference calculation module is used for calculating an average difference of a plurality of differences;
the judging module is used for judging whether prestored control logic matched with the average difference value is stored or not;
the control logic storage module is used for storing the pre-stored control logic with different difference values corresponding to different differences;
the determining module is further configured to determine, when a pre-stored control logic matching the average difference value is stored, the pre-stored control logic matching the average difference value as the target control logic.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the application sequencing method of any of claims 1 to 6.
CN201911217377.1A 2019-12-03 2019-12-03 Application sorting method, application sorting device and computer readable storage medium Active CN111026486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911217377.1A CN111026486B (en) 2019-12-03 2019-12-03 Application sorting method, application sorting device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911217377.1A CN111026486B (en) 2019-12-03 2019-12-03 Application sorting method, application sorting device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111026486A CN111026486A (en) 2020-04-17
CN111026486B true CN111026486B (en) 2022-10-25

Family

ID=70203953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911217377.1A Active CN111026486B (en) 2019-12-03 2019-12-03 Application sorting method, application sorting device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111026486B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930380A (en) * 2009-06-23 2010-12-29 索尼公司 Signal conditioning package, method for managing resource and program
CN103544035A (en) * 2013-10-21 2014-01-29 北京奇虎科技有限公司 Application clearing method and device for mobile terminal
CN105955814A (en) * 2016-05-06 2016-09-21 华南农业大学 Event priority scheduling-based complex event detection method
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal
CN107066290A (en) * 2017-01-23 2017-08-18 努比亚技术有限公司 A kind of method and apparatus for starting application according to associating policy
CN107168787A (en) * 2017-07-03 2017-09-15 赵桂银 A kind of running of mobile terminal performance improvement method and apparatus
CN109753348A (en) * 2018-11-21 2019-05-14 惠州Tcl移动通信有限公司 The management-control method and terminal of background application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2496537B (en) * 2011-04-27 2014-10-15 Seven Networks Inc System and method for making requests on behalf of a mobile device based on atmoic processes for mobile network traffic relief

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930380A (en) * 2009-06-23 2010-12-29 索尼公司 Signal conditioning package, method for managing resource and program
CN103544035A (en) * 2013-10-21 2014-01-29 北京奇虎科技有限公司 Application clearing method and device for mobile terminal
CN105955814A (en) * 2016-05-06 2016-09-21 华南农业大学 Event priority scheduling-based complex event detection method
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal
CN107066290A (en) * 2017-01-23 2017-08-18 努比亚技术有限公司 A kind of method and apparatus for starting application according to associating policy
CN107168787A (en) * 2017-07-03 2017-09-15 赵桂银 A kind of running of mobile terminal performance improvement method and apparatus
CN109753348A (en) * 2018-11-21 2019-05-14 惠州Tcl移动通信有限公司 The management-control method and terminal of background application

Also Published As

Publication number Publication date
CN111026486A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN109672242B (en) Terminal charging control method and device and storage medium
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN109995441B (en) Communication information processing method, device and storage medium
CN111654849A (en) Quick starting method and system for near field communication, storage medium and terminal equipment
CN111355991A (en) Video playing method and device, storage medium and mobile terminal
CN111399944A (en) Application function starting method and device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN111262636B (en) Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN111917982B (en) Camera selection method and device, storage medium and mobile terminal
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 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