Mobile terminal notification intelligent clearing processing method, device, mobile terminal and medium
By detecting the application scenarios and memory usage of mobile terminals, intelligently limiting the number of notifications, the system memory shortage caused by excessive notifications in mobile terminals is solved, and the user experience and system performance are improved.
Patent Information
- Application Number
- CN202110769383.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-07
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-07-07
AI Technical Summary
The prior art fails to effectively limit the number of notifications in mobile terminals, resulting in excessive system memory usage, which may lead to insufficient system memory, further lead to mobile phone lag and affect user experience.
By detecting whether the current application scenario of the mobile terminal is in use, and setting a retention threshold for the number of notifications based on the current memory usage, intelligently limit the number of notifications and delete unnecessary notifications to reduce system load.
It effectively improves the system memory and performance environment, reduces system load, improves user experience, and provides a more convenient user experience.
Smart Images

Figure CN113590312B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile terminals, and in particular to a method and device for intelligently clearing notifications of a mobile terminal, a mobile terminal and a storage medium. Background Art
[0002] With the development of science and technology and the continuous improvement of people's living standards, the use of various mobile terminals such as mobile phones has become more and more popular, and mobile phones have become an indispensable communication tool in people's lives.
[0003] Currently, users install many applications on smartphones, tablets and other devices. When downloading applications, receiving messages, and providing scheduled reminders, the system will send notifications to users, which will be displayed in the status bar or other places that are easily visible to users. When there are a large number of notifications in the system, the system / applications that receive notifications will occupy too much memory, which may lead to insufficient system memory, further causing the phone to freeze and affecting the user experience.
[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method, device, mobile terminal and storage medium for intelligent clearing of mobile terminal notifications are provided. The present invention intelligently limits the number of notifications according to different user scenarios based on the current system / application memory usage, number of notifications, sending time and other information, thereby improving the system memory / performance environment while maintaining a good user experience of notifications as much as possible, thereby providing convenience for users.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0007] A method for intelligently clearing notifications from a mobile terminal, wherein the method comprises:
[0008] When the mobile terminal is ready to send a new application notification, it detects whether the current application scenario of the mobile terminal is in use;
[0009] When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined;
[0010] When the current memory usage exceeds a first threshold of the maximum usage, the number of notifications is set to retain a first number of notifications at most;
[0011] When the current memory usage is less than a specified second threshold, the notification number is set to retain a maximum of a second number of notifications;
[0012] Based on the set retention threshold, redundant notifications are deleted until the number of notifications is less than the specified retention threshold.
[0013] The method for intelligently clearing notifications from a mobile terminal, wherein when the mobile terminal is preparing to send a new application notification, the step of detecting whether the current application scenario of the mobile terminal is in use comprises:
[0014] Detect whether the mobile terminal system is ready to send a new application notification;
[0015] When detecting that the mobile terminal is ready to send a new application notification, detect whether the current user scene is in a screen-off state;
[0016] When it is detected that the current application scenario of the mobile terminal is not in the screen-off state, it is detected whether the notification is being viewed;
[0017] When it is detected that the notification is not being viewed, the current system is marked as being in a usage state of not viewing notifications.
[0018] The mobile terminal notification intelligent clearing processing method, wherein when the current application scenario of the mobile terminal is detected to be in use, the step of determining the current memory usage rate includes:
[0019] When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined again;
[0020] Determine whether the current memory usage is greater than a first threshold or less than a specified second threshold.
[0021] The method for intelligently clearing notifications of a mobile terminal, wherein when the current memory usage rate exceeds a first threshold value of the maximum usage rate, the step of setting the number of notifications to retain a maximum of a first number of notifications comprises:
[0022] When the mobile terminal detects that the current memory usage rate exceeds 90% of the maximum usage rate, the number of notifications is set to retain a maximum of 10 notifications, and if more than 10 notifications are automatically deleted.
[0023] The method for intelligently clearing notifications from a mobile terminal, wherein when the current memory usage rate is less than a specified second threshold, the step of setting the number of notifications to retain a second number of notifications at most comprises:
[0024] When the current memory usage is less than the specified 30%, the maximum number of notifications is set to retain 100. If there are more than 100 notifications, the previous application notifications will be automatically deleted.
[0025] The method for intelligently clearing notifications from a mobile terminal, wherein the step of deleting redundant notifications until the number of notifications is less than the specified retention threshold according to the set retention threshold comprises:
[0026] When a retention threshold of the application notification setting is a first number, upon detecting that the first number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified retention threshold of the first number;
[0027] When the retention threshold of the application notification setting is a second number, when it is detected that the second number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified second number of retention thresholds.
[0028] The mobile terminal notification intelligent clearing processing method, wherein, when detecting that the current application scenario of the mobile terminal is in use, the step of determining the current memory usage rate further includes:
[0029] When a memory-consuming 3D gaming application or camera application is detected, the notification number threshold is directly set to 10.
[0030] A mobile terminal notification intelligent clearing processing device, wherein the device comprises:
[0031] The first detection module is used to detect whether the current application scenario of the mobile terminal is in use when the mobile terminal is preparing to send a new application notification;
[0032] A judgment module, used to judge the current memory usage rate when detecting that the current application scenario of the mobile terminal is in use;
[0033] A first setting module, configured to set the number of notifications to retain a maximum of a first number of notifications when the current memory usage exceeds a first threshold of the maximum usage;
[0034] A second setting module, configured to set the number of notifications to retain a second number of notifications at most when the current memory usage is less than a specified second threshold;
[0035] The notification clearing control module is used to delete redundant notifications according to the set retention threshold until the number of notifications is less than the specified retention threshold.
[0036] A mobile terminal, wherein the mobile terminal includes a memory, a processor, and a mobile terminal notification intelligent clearing processing program stored in the memory and executable on the processor, and when the processor executes the mobile terminal notification intelligent clearing processing program, the steps of any one of the mobile terminal notification intelligent clearing processing methods are implemented.
[0037] A computer-readable storage medium, wherein a mobile terminal notification intelligent clearing processing program is stored on the computer-readable storage medium, and when the mobile terminal notification intelligent clearing processing program is executed by a processor, the steps of any one of the mobile terminal notification intelligent clearing processing methods are implemented.
[0038] Beneficial effect: Compared with the prior art, the present invention provides a method for intelligently clearing notifications of mobile terminals. The present invention intelligently clears notifications in different user scenarios according to the number of system notifications, system memory usage, notification sending time and other information, so that the total number of notifications is always kept below the set dynamic threshold. Therefore, the number of notifications can be intelligently cut to reduce the system load when the user does not actively clear the notifications, thereby improving the user experience and providing convenience for the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The present invention provides a flowchart of a specific implementation of the method for intelligently clearing notifications of a mobile terminal according to an embodiment of the present invention.
[0040] Figure 2 This is a flowchart of a specific application example of a specific implementation method of the mobile terminal notification intelligent clearing processing method of the present invention.
[0041] Figure 3 A principle block diagram of a mobile terminal notification intelligent clearing processing device provided by an embodiment of the present invention.
[0042] Figure 4 A schematic diagram of the internal structure of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0045] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0046] With the development of science and technology and the continuous improvement of people's living standards, the use of various mobile terminals such as mobile phones has become more and more popular, and mobile phones have become an indispensable communication tool in people's lives.
[0047] Research has found that current users install many applications when using smartphones, tablets and other devices. When downloading applications, receiving messages, and providing scheduled reminders, the system will send notifications to users and display them in the status bar or other places that users can easily see. When there are a large number of notifications in the system, the system / applications that receive notifications will occupy too much memory, which may lead to insufficient system memory, further causing the phone to freeze and affecting the user experience.
[0048] Most of the existing technologies do not limit the number of notifications. Some mobile terminals limit the maximum number of background notifications that an application can send, and the threshold is fixed. When users install many applications, they are likely to exceed the limit, resulting in increased system load.
[0049] In order to solve the above problems, an embodiment of the present invention provides a method for intelligently clearing notifications of mobile terminals. According to the method for intelligently clearing notifications of mobile terminals of this embodiment, the number of notifications can be intelligently limited according to different user scenarios based on the current system / application memory usage, number of notifications, sending time and other information, so as to improve the system memory / performance environment while maintaining a good user experience of notifications as much as possible, thereby providing convenience for users and improving the user experience.
[0050] Exemplary Methods
[0051] First embodiment
[0052] like Figure 1 As shown in , an embodiment of the present invention provides a method for intelligently clearing notifications from a mobile terminal, which can be used in mobile devices such as mobile phones and tablet computers. In an embodiment of the present invention, the method includes the following steps:
[0053] Step S100: When the mobile terminal is ready to send a new application notification, it is detected whether the current application scenario of the mobile terminal is in use;
[0054] In the embodiment of the present invention, the mobile terminal can be taken as an example of a user's mobile phone. Currently, users use smart phones, tablets and other devices, and many applications are installed. When downloading applications, receiving messages, and timing reminders, the system will send notifications to users, which will be displayed in the status bar or other places that users can easily see. When there are a large number of notifications in the system, the system / application receiving the notification will occupy too much memory, which may cause insufficient system memory, further causing the phone to freeze, affecting the user experience.
[0055] In the embodiment of the present invention, when the mobile terminal is preparing to send a new application notification, it will detect whether the current application scenario of the mobile terminal is in use. Detecting whether the current application scenario of the mobile terminal is in use includes: detecting whether the mobile terminal is currently in a screen-off state, whether the notification usage status is checked, whether the mobile terminal is in use of an application that consumes a lot of memory (3D games, taking photos, etc.), etc.
[0056] Specifically, the mobile terminal of the present invention will detect in real time whether the mobile terminal system is ready to send a new application notification; under normal circumstances, if there is a new change in the application or the information system will send a new application notification in time; the present invention will detect in real time whether the mobile terminal system is ready to send a new application notification;
[0057] In the present invention, when it is detected that the mobile terminal is ready to send a new application notification, it is detected whether the current user scene is in a screen-off state;
[0058] In one of them, when it is detected that the current application scenario of the mobile terminal is not in the screen-off state, but in the state of using the application, it is determined that the current application scenario of the mobile terminal is in the use state.
[0059] In another case, when it is detected that the current application scenario of the mobile terminal is not in the screen-off state, it is detected whether the notification is being viewed; when it is detected that the notification is not being viewed and other applications are being used, it is calibrated that the current system is in a state of not viewing notifications.
[0060] Step S200: when it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined;
[0061] In the embodiment of the present invention, when it is detected that the current application scenario of the mobile terminal is in use, it is necessary to determine the current memory usage rate, so as to set the notification quantity retention threshold value according to the memory usage rate.
[0062] Specifically, in the embodiment of the present invention, when it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined again;
[0063] It is determined whether the current memory usage is greater than a first threshold (eg, 90%) or less than a specified second threshold (eg, 30%).
[0064] Step S300: When the current memory usage rate exceeds a first threshold value of the maximum usage rate, the number of notifications is set to retain a first number of notifications at most;
[0065] In an embodiment of the present invention, the first threshold can be set to 90% of the memory usage rate, and the first number can be set to 10. That is, when it is determined that the current memory usage rate exceeds the first threshold (90%) of the maximum usage rate, the number of notifications is set to retain a maximum of the first number (10) of notifications.
[0066] That is, in the embodiment of the present invention, when the mobile terminal detects that the current memory usage rate exceeds 90% of the maximum usage rate, the number of notifications is set to retain a maximum of 10 notifications, and the previous application notifications are automatically deleted when more than 10 notifications are retained. This setting is convenient for reducing the number of retained application notifications when the memory is insufficient, thereby improving the system memory / performance environment and maintaining a good user experience of notifications as much as possible.
[0067] Step S400: when the current memory usage is less than a specified second threshold, setting the number of notifications to retain a second number of notifications at most;
[0068] In the embodiment of the present invention, when it is determined that the current memory usage is less than a specified second threshold, the number of notifications is set to retain a second number of notifications at most. Preferably, the second threshold is 30% of the memory usage; that is, when the current memory usage is less than the specified 30%, the number of notifications is set to retain a maximum of 100 notifications, and if more than 100 notifications are automatically deleted.
[0069] This setting is convenient for reducing the number of retained app notifications to a limited extent under normal memory conditions, thereby improving the system memory / performance environment while maintaining a good user experience of notifications as much as possible.
[0070] Step S500: According to the set retention threshold, delete redundant notifications until the number of notifications is less than the specified retention threshold.
[0071] In the embodiment of the present invention, redundant notifications are deleted according to the set retention threshold until the number of notifications is less than the specified retention threshold.
[0072] Specifically, when the retention threshold of application notification setting is a first number (10), when the memory usage rate reaches 90% or more, when it is detected that the application notifications exceed the first number (10), the excess notifications with earlier time are deleted until the number of notifications is less than the specified first number of retention thresholds; that is, a maximum of 10 application notifications are retained in this scenario.
[0073] When the retention threshold of the application notification setting is set to the second number (100), when it is detected that the second number (100) is exceeded, the excess notifications with earlier times are deleted until the number of notifications is less than the specified second number of retention thresholds; that is, a maximum of 100 application notifications are retained in this scenario.
[0074] In a further embodiment, when the mobile terminal notifies the intelligent clearing processing method, wherein, when the mobile terminal is detected to be in use, the step of determining the current memory usage rate further includes:
[0075] When a memory-consuming 3D game application or a camera application is detected, the notification number threshold is directly set to 10. That is, in the embodiment of the present invention, when it is detected that an application that consumes a lot of memory, such as a 3D game application or a camera application, is started and is in use, the notification number threshold can be directly set to 10, which can effectively avoid excessive memory usage, reduce the number of retained application notifications to a limited extent, and achieve the purpose of improving the system memory / performance environment while maintaining a good user experience of notifications as much as possible.
[0076] In the embodiment of the present invention, the specific numerical values of the first threshold, the second threshold, the first quantity, and the second quantity can be set to another number, for example, set to a variable, and the user can select the corresponding specific numerical value as needed.
[0077] The present invention is further described in detail below through a specific application example:
[0078] like Figure 2 As shown, a mobile terminal notification intelligent clearing processing device according to a specific application embodiment of the present invention includes the following steps:
[0079] Step S10, start;
[0080] Step S11, the system prepares to send an application notification; and proceeds to step S12;
[0081] Step S12, check whether the screen is off, if not, proceed to step S13; if yes, proceed to step S15;
[0082] In the present invention, before the application sends a notification to remind the user to display, the system first confirms the current user scenario: whether the screen is off, if yes, directly jumps to step S15 to confirm the current system status; if not, it goes to step S13;
[0083] Step S13: whether the notification is being viewed, if not, proceed to step S14, if yes, proceed to step S19;
[0084] In this step, it is detected whether the user is viewing the notification. If yes, it goes to step S19; no processing is performed; if not, it goes to step S14;
[0085] Step S14, detecting whether the currently used application occupies a large amount of memory, for example, whether the memory usage rate is greater than 90%, if not, proceeding to step S15, if yes, proceeding to step S18;
[0086] In this step, it is detected whether an application that consumes a lot of memory (3D games, taking photos, etc.) is being used. If so, go to step S18 and directly set the notification quantity threshold to 10; if not, go to S15 and jump to confirm the current system status judgment.
[0087] Step S15: Whether the system is in low memory, if yes, proceed to step S18;
[0088] In this step, the current system status is confirmed and whether the system is in a low memory state. If yes, the system goes to step S18 and adjusts the notification threshold to retain a maximum of 10 notifications; otherwise, the system jumps to the next step and goes to step S16.
[0089] Step S16: Whether the notifications for more than 1 day are greater than the threshold, if not, proceed to step S17, if yes, proceed to step S18;
[0090] That is, the time starts from when the notification is displayed, and the user does not click to view the notification for a day, and whether the notification exceeds the preset threshold, if not, the process proceeds to step S17, and if yes, the process proceeds to step S18;
[0091] Step S17, setting the notification quantity threshold to 100, that is, retaining a maximum of 100 notifications; and proceeding to step S20;
[0092] In this step, when the current memory usage is less than 30%, the notification quantity threshold is set to 100, that is, a maximum of 100 notifications are retained, and the process proceeds to step S20;
[0093] Step S18, setting the notification quantity threshold to 10, that is, retaining a maximum of 10 notifications, and proceeding to step S20;
[0094] In the present invention, when the current memory usage rate exceeds 90%, the notification quantity threshold is set to 10, that is, a maximum of 10 notifications are retained, and step S20 is entered;
[0095] Step S19: Do not set the threshold, keep the system in the default state, and proceed to step S20;
[0096] Step S20: Delete redundant notifications according to the set threshold until the number is less than the threshold.
[0097] In the embodiment of the present invention, after the last notification is sent, the system compares the number of existing notifications with the dynamically adjusted threshold and deletes redundant notifications until the number is less than the threshold.
[0098] As can be seen from the above, the present invention dynamically adjusts the threshold value according to various conditions, and the system clears redundant notifications according to the threshold value.
[0099] Exemplary Devices
[0100] like Figure 3 As shown in , an embodiment of the present invention provides a mobile terminal notification intelligent clearing processing device, the device comprising:
[0101] The first detection module 610 is used to detect whether the current application scenario of the mobile terminal is in use when the mobile terminal is preparing to send a new application notification;
[0102] The judging module 620 is used to judge the current memory usage rate when it is detected that the current application scenario of the mobile terminal is in use;
[0103] A first setting module 630, configured to set the number of notifications to retain a maximum number of notifications when the current memory usage exceeds a first threshold of the maximum usage;
[0104] A second setting module 640, configured to set the number of notifications to retain a second number of notifications at most when the current memory usage is less than a specified second threshold;
[0105] The notification clearing control module 650 is used to delete redundant notifications according to the set retention threshold until the number of notifications is less than the specified retention threshold; the details are as described above.
[0106] Based on the above embodiments, the present invention further provides a terminal device, whose principle block diagram can be shown as follows: Figure 4 As shown. The terminal device includes a processor, a memory, a network interface, a display screen, and a camera connected via a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a mobile terminal notification intelligent clearing process is implemented. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen.
[0107] Those skilled in the art will understand that Figure 4 The principle block diagram is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the terminal device to which the solution of the present invention is applied. The specific terminal device may include more or fewer components than those in the figure, or combine certain components or have a different component arrangement.
[0108] In one embodiment, a terminal device is provided, the terminal device comprising a memory, a processor, and a mobile terminal notification intelligent clearing processing program stored on the processor and executable on the processor, the processing executing the following steps:
[0109] When the mobile terminal is ready to send a new application notification, it detects whether the current application scenario of the mobile terminal is in use;
[0110] When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined;
[0111] When the current memory usage exceeds a first threshold of the maximum usage, the number of notifications is set to retain a first number of notifications at most;
[0112] When the current memory usage is less than a specified second threshold, the notification number is set to retain a maximum of a second number of notifications;
[0113] Based on the set retention threshold, redundant notifications are deleted until the number of notifications is less than the specified retention threshold.
[0114] Wherein, when the mobile terminal is preparing to send a new application notification, the step of detecting whether the current application scenario of the mobile terminal is in use includes:
[0115] Detect whether the mobile terminal system is ready to send a new application notification;
[0116] When detecting that the mobile terminal is ready to send a new application notification, detect whether the current user scene is in a screen-off state;
[0117] When it is detected that the current application scenario of the mobile terminal is not in the screen-off state, it is detected whether the notification is being viewed;
[0118] When it is detected that the notification is not being viewed, the current system is marked as being in a usage state of not viewing notifications.
[0119] Wherein, when detecting that the current application scenario of the mobile terminal is in use, the step of determining the current memory usage rate includes:
[0120] When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined again;
[0121] Determine whether the current memory usage is greater than a first threshold or less than a specified second threshold.
[0122] The step of setting the number of notifications to retain a maximum number of notifications when the current memory usage exceeds a first threshold of the maximum usage includes:
[0123] When the mobile terminal detects that the current memory usage rate exceeds 90% of the maximum usage rate, the number of notifications is set to retain a maximum of 10 notifications, and if more than 10 notifications are automatically deleted.
[0124] The step of setting the number of notifications to retain a second number of notifications at most when the current memory usage rate is less than a specified second threshold value includes:
[0125] When the current memory usage is less than the specified 30%, the maximum number of notifications is set to retain 100. If there are more than 100 notifications, the previous application notifications will be automatically deleted.
[0126] The step of deleting redundant notifications according to the set retention threshold until the number of notifications is less than the specified retention threshold includes:
[0127] When a retention threshold of the application notification setting is a first number, upon detecting that the first number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified retention threshold of the first number;
[0128] When the retention threshold of the application notification setting is a second number, when it is detected that the second number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified second number of retention thresholds.
[0129] Wherein, when detecting that the current application scenario of the mobile terminal is in use, the step of determining the current memory usage rate further includes:
[0130] When a memory-consuming 3D gaming application or camera application is detected, the notification number threshold is directly set to 10.
[0131] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0132] In summary, the present invention discloses a method, device, mobile terminal and storage medium for intelligently clearing notifications of mobile terminals. The method includes: when the mobile terminal is ready to send a new application notification, detecting whether the current application scenario of the mobile terminal is in use; when detecting that the current application scenario of the mobile terminal is in use, judging the current memory usage; when the current memory usage exceeds the first threshold of the maximum usage, setting the number of notifications to retain a maximum of a first number of notifications; when the current memory usage is less than a specified second threshold, setting the number of notifications to retain a maximum of a second number of notifications; according to the set retention threshold, deleting redundant notifications until the number of notifications is less than the specified retention threshold. The present invention intelligently limits the number of notifications according to the current system / application memory occupancy, notification number, sending time and other information according to different user scenarios, thereby improving the system memory / performance environment and providing convenience for users.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for intelligently clearing notifications from a mobile terminal, characterized in that: The method comprises: When the mobile terminal is ready to send a new application notification, it detects whether the current application scenario of the mobile terminal is in use; When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined; When the current memory usage exceeds a first threshold of the maximum usage, the number of notifications is set to retain a first number of notifications at most; When the current memory usage is less than a specified second threshold, the notification number is set to retain a maximum of a second number of notifications; According to the set retention threshold, delete the redundant notifications until the number of notifications is less than the specified retention threshold; When the mobile terminal is preparing to send a new application notification, the step of detecting whether the current application scenario of the mobile terminal is in use includes: Detect whether the mobile terminal system is ready to send a new application notification; When detecting that the mobile terminal is ready to send a new application notification, detect whether the current user scene is in a screen-off state; When it is detected that the current application scenario of the mobile terminal is not in the screen-off state, it is detected whether the notification is being viewed; When it is detected that the notification is not being viewed, the current system is marked as being in a usage state of not viewing notifications.
2. The method for intelligently clearing notifications from a mobile terminal according to claim 1, characterized in that: When the current application scenario of the mobile terminal is detected to be in use, the step of determining the current memory usage rate includes: When it is detected that the current application scenario of the mobile terminal is in use, the current memory usage rate is determined again; Determine whether the current memory usage is greater than a first threshold or less than a specified second threshold.
3. The method for intelligently clearing notifications from a mobile terminal according to claim 1, characterized in that: The step of setting the number of notifications to retain a maximum number of notifications when the current memory usage exceeds a first threshold of the maximum usage includes: When the mobile terminal detects that the current memory usage rate exceeds 90% of the maximum usage rate, the number of notifications is set to retain a maximum of 10 notifications, and if more than 10 notifications are automatically deleted.
4. The method for intelligently clearing notifications from a mobile terminal according to claim 1, characterized in that: The step of setting the number of notifications to retain a second number of notifications at most when the current memory usage rate is less than a specified second threshold value comprises: When the current memory usage is less than the specified 30%, the maximum number of notifications is set to retain 100. If there are more than 100 notifications, the previous application notifications will be automatically deleted.
5. The method for intelligently clearing notifications from a mobile terminal according to claim 1, characterized in that: The step of deleting redundant notifications according to the set retention threshold until the number of notifications is less than the specified retention threshold comprises: When a retention threshold of the application notification setting is a first number, upon detecting that the first number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified retention threshold of the first number; When the retention threshold of the application notification setting is a second number, when it is detected that the second number is exceeded, the redundant notifications are deleted until the number of notifications is less than the specified second number of retention thresholds.
6. The method for intelligently clearing notifications from a mobile terminal according to claim 1, characterized in that: When the current application scenario of the mobile terminal is detected to be in use, the step of determining the current memory usage rate further includes: When a memory-consuming 3D gaming application or camera application is detected, the notification number threshold is directly set to 10.
7. A mobile terminal notification intelligent clearing processing device, characterized in that: The device comprises: The first detection module is used to detect whether the current application scenario of the mobile terminal is in use when the mobile terminal is preparing to send a new application notification; A judgment module, used to judge the current memory usage rate when detecting that the current application scenario of the mobile terminal is in use; A first setting module, configured to set the number of notifications to retain a maximum of a first number of notifications when the current memory usage exceeds a first threshold of the maximum usage; A second setting module, configured to set the number of notifications to retain a second number of notifications at most when the current memory usage is less than a specified second threshold; A notification clearing control module is used to delete redundant notifications according to the set retention threshold until the number of notifications is less than the specified retention threshold; When the mobile terminal is preparing to send a new application notification, the step of detecting whether the current application scenario of the mobile terminal is in use includes: Detect whether the mobile terminal system is ready to send a new application notification; When detecting that the mobile terminal is ready to send a new application notification, detect whether the current user scene is in a screen-off state; When it is detected that the current application scenario of the mobile terminal is not in the screen-off state, it is detected whether the notification is being viewed; When it is detected that the notification is not being viewed, the current system is marked as being in a usage state of not viewing notifications.
8. A mobile terminal, characterized in that: The mobile terminal includes a memory, a processor, and a mobile terminal notification intelligent clearing processing program stored in the memory and executable on the processor. When the processor executes the mobile terminal notification intelligent clearing processing program, the steps of the mobile terminal notification intelligent clearing processing method as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a mobile terminal notification intelligent clearing processing program, and when the mobile terminal notification intelligent clearing processing program is executed by the processor, the steps of the mobile terminal notification intelligent clearing processing method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Background application program cleaning method and device applied to mobile terminal
CN105094936A
Information filtering method and device, terminal and storage medium
CN109831581A