CN109547638B - Terminal control method, terminal and computer readable storage medium - Google Patents

Terminal control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109547638B
CN109547638B CN201811506801.XA CN201811506801A CN109547638B CN 109547638 B CN109547638 B CN 109547638B CN 201811506801 A CN201811506801 A CN 201811506801A CN 109547638 B CN109547638 B CN 109547638B
Authority
CN
China
Prior art keywords
notification message
notification
target application
terminal
control method
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
CN201811506801.XA
Other languages
Chinese (zh)
Other versions
CN109547638A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811506801.XA priority Critical patent/CN109547638B/en
Publication of CN109547638A publication Critical patent/CN109547638A/en
Application granted granted Critical
Publication of CN109547638B publication Critical patent/CN109547638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a terminal control method, a terminal and a computer readable storage medium, wherein the method comprises the steps of receiving a first notification message, judging whether a first application corresponding to the first notification message is a preset target application, if so, searching a first application list corresponding to the first application from the target application list, judging whether first sender information exists in the first application list, wherein the first sender information is the sender information of the first notification message, if not, directly updating the first notification message into the latest notification message in a notification center, and adding the first sender information into the first application list.

Description

Terminal control method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a terminal control method, a terminal, and a computer-readable storage medium.
Background
With the rapid development of terminal technology, the popularity of terminals such as mobile phones, tablet computers, smart wristbands and smart watches is higher and higher, the functions of the terminals are increased day by day, the contents on the terminals are enriched day by day, and the roles played by the terminals in the life and work of people are more and more important.
In the prior art, notification messages sent by the same sender in a notification center are usually displayed at one place for the convenience of users to view, so that when a new notification message is received and needs to be updated to the notification center, all notification messages in the notification center need to be traversed to determine whether a notification message exists in the notification center, wherein the sender of the notification message is consistent with the sender of the new notification message. And as the functions of the terminal are more and more, the applications installed on the terminal are more and more, the notification messages in the terminal notification center are more and more, and the time required for traversing all the notification messages in the notification center once is more and more, so that the problems that the notification center is slow to update and the user experience satisfaction is low are caused.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a terminal control method, a terminal and a computer-readable storage medium for solving the technical problem in the prior art, in which, when a new notification message is received and updated to a notification center, all notification messages in the notification center need to be traversed once, thereby resulting in slow update of the notification center and low user experience satisfaction.
In order to solve the above technical problem, the present invention provides a terminal control method, including:
receiving a first notification message;
judging whether a first application corresponding to the first notification message is a preset target application or not;
if so, searching a first application list corresponding to the first application from a target application list;
judging whether first sender information exists in the first application list, wherein the first sender information is the sender information of the first notification message;
if not, the first notification message is directly updated to the latest notification message in the notification center, and the first sender information is added to the first application list.
Optionally, before finding the first application list from the target application list, the method further includes:
establishing a target application list for each target application;
and adding sender information of the notification message of each target application in the current notification center into each target application list.
Optionally, the adding the first sender information to the first application list includes: adding the first notification message to the first application list, the first notification message including the first sender information.
Optionally, before the determining whether the first application corresponding to the first notification message is a preset target application, the method further includes:
counting the number of notification messages corresponding to each application installed on the terminal in a preset first time period;
and setting the application with the number of the corresponding notification messages in the first time period being greater than or equal to a preset first threshold value as a target application.
Optionally, the terminal control method further includes:
loading a window View of the notification center;
and when a View instruction of the notification center is received, directly displaying the View of the notification center.
Optionally, after directly displaying the View of the notification center, the method further includes:
judging whether a control instruction aiming at the notification center is received within a preset third time period;
if not, closing the notification center.
Optionally, the terminal control method includes:
and displaying the notification message of the notification center according to a preset display mode.
Optionally, after receiving the first notification message, the method further includes:
and updating the content of the pending intention Pendingintent corresponding to the first notification message in the notification center according to the first notification message.
Furthermore, the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of any of the above-described terminal control methods.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the terminal control method according to any one of the above.
Advantageous effects
The invention provides a terminal control method, a terminal and a computer readable storage medium, aiming at the problems that when a new notification message is received and updated to a notification center, all notification messages in the notification center need to be traversed, so that the notification center is updated slowly and the user experience satisfaction is low in the prior art, whether a first application corresponding to the first notification message is a preset target application is judged by receiving the first notification message, if so, a first application list corresponding to the first application is searched from the target application list, whether first sender information exists in the first application list is judged, the first sender information is the sender information of the first notification message, if not, the first notification message is directly updated to the latest notification message in the notification center, and the first sender information is added into the first application list, namely, in the invention, when the newly received notification message is the notification message sent by the preset target application and the information of the sender is not found in the corresponding target application list, the new notification message can be directly updated to the latest notification message in the notification center without traversing the notification center, thereby saving the updating time and improving the user satisfaction.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a basic flowchart of a terminal control method according to a first embodiment of the present invention;
fig. 4 is a flowchart of a target application determining method according to a first embodiment of the present invention;
fig. 5 is a flowchart for determining whether the number of notification messages is greater than a threshold according to the first embodiment of the present invention;
fig. 6 is a detailed flowchart of a terminal control method according to a second embodiment of the present invention;
FIG. 7 is a first diagram of a notification center View according to a second embodiment of the present invention;
FIG. 8 is a first diagram of a notification center View according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to a third embodiment of the present invention;
fig. 10 is a detailed flowchart of a terminal control method according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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 fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
In order to solve the problems that the update of the notification center is slow and the satisfaction of the user experience is low because all notification messages in the notification center need to be traversed when a new notification message is received and updated to the notification center in the prior art, the embodiment provides a terminal control method which is applied to a terminal. The terminal described in the present embodiment may be implemented in various forms, such as a smart watch, a smart bracelet, and the like. The terminal described in this embodiment may be the terminal shown in fig. 1, and of course, the terminal may also be another terminal. As shown in fig. 3, fig. 3 is a basic flowchart of a terminal control method provided in this embodiment, where the terminal control method includes:
s301, receiving a first notification message.
It should be noted that, in this embodiment, the first notification message is any notification message received by the terminal, that is, the first notification message is any newly received notification message, where the "first" is not particularly limited to the notification message, and is only used to make the following description clearer.
The first notification message may be sent by any application installed on the terminal, for example, a new message notification of "WeChat", a new message notification of "microblog", or the like; it may also be transmitted by a terminal-mounted system, such as a system update notification message or the like.
In this embodiment, the first notification message may also be classified, and if the first notification message is a timely type notification message, the first notification message is directly displayed; if the first notification message is not an in-time class notification message, go to S302. The timely type notification message is valid at the received time, and after a period of time, an invalid message, for example, a prompt message of an alarm clock, reminds when the current time reaches the set alarm clock, and after a period of time, the alarm clock prompt message is invalid.
S302, whether the first application corresponding to the first notification message is a preset target application or not is judged.
If yes, turning to S303; if not, ending, updating the first notification message to the notification center according to the existing mode, namely searching whether the notification center has the notification message sent by the first sender corresponding to the first notification message, and if so, updating the notification message sent by the first sender in the notification center and the first notification message into the latest notification message in the notification center; if not, only the first notification message is updated to the latest notification message.
In this embodiment, after receiving the first notification message, it is determined whether the first notification message is a preset target application. Therefore, before determining whether the first notification message is a preset target application, the target application needs to be set. The target application can be flexibly set by a user and/or a terminal developer according to actual needs. For example, the user may set "WeChat," "QQ," etc. as the target application. For another example, referring to fig. 4, the target application may also be determined by:
s401, counting the number of notification messages corresponding to each application installed on the terminal in a preset first time period.
It should be understood that the first time period is a time period before determining whether the first application corresponding to the first notification message is the target application. The first time period can be flexibly set by a user and/or a terminal developer according to actual needs. For example, set to 8 hours, one day, etc.
S402, setting the applications with the number of the corresponding notification messages in the first time period being greater than or equal to a preset first threshold value as target applications.
After counting the number of notification messages corresponding to each application installed on the terminal in the first time period, setting the application with the number of notification messages larger than a preset first threshold value as a target application, wherein the first threshold value can be flexibly set by a user and/or a terminal developer according to actual needs. For example, 20 strips, 10 strips, etc. are provided. In this embodiment, all applications with the number of notification messages being equal to or greater than the preset first threshold may be set as target applications, and of course, a target application number threshold may be set in advance, and when the number of applications with the number of notification messages being equal to or greater than the preset first threshold exceeds the preset target application number threshold, N (N is equal to the target application number threshold) applications with a large number of information pieces may be selected as target applications, for example, when the target application number threshold is 2, the first threshold is 8, and when the number of notification messages of "wechat" in the first time period is 30, the number of notification messages of "microblog" is 12, and the number of notification messages of "QQ" is 10, then "wechat" and "microblog" are selected as target applications.
In this embodiment, before determining whether the first application corresponding to the first notification message is the preset target application, referring to fig. 5, the method may further include the following steps:
s501, judging whether the number of the received notification messages in a preset second time period is larger than or equal to a preset second threshold value.
If yes, go to S502, otherwise, end.
In this embodiment, the second time period is a time period before whether the first application corresponding to the first notification message is the target application is determined, where the second time period may be flexibly set by the user and/or the terminal developer according to actual needs. For example, 10 minutes, 20 minutes, etc. are set. That is, the second period of time may be a period of time from the reception of the first notification message, among others. For example, if the time when the first notification message is received is 12:00 and the duration of the second time period is 10 minutes, it is determined whether the number of received notification messages in the time period from 11:50 to 12:00 is greater than or equal to a preset second threshold.
In this embodiment, the second threshold may be flexibly set by a terminal developer and/or a user according to actual needs, for example, set to 10, 20, and the like.
S502, judging whether the first application corresponding to the first notification message is a preset target application.
That is, when the number of the received notification messages in the preset second time period is greater than the preset second threshold, the process goes to S302, and the subsequent steps are executed.
In this embodiment, after receiving the first notification message, before determining whether the first application corresponding to the first notification message is the preset target application, it may also be determined whether the number of current notification messages of the terminal notification center is greater than a preset value, if so, the process goes to S302, and the process performs the subsequent steps of determining whether the first application corresponding to the first notification message is the preset target application; if not, the process is ended. The preset values can be flexibly set according to actual needs, for example, 20 preset values are set.
S303, finding a first application list corresponding to the first application from the preset target application list.
It should be noted that, in this embodiment, one target application corresponds to one target application list, that is, in this embodiment, after the target application is determined, one target application list is respectively established for each target application. That is to say, in this embodiment, after determining the target application and before finding the first application list from the preset target application list, the method further includes: and establishing a target application list for each target application. After the target application list is established, in order to ensure that the sender information included in the target application is the same as the sender information of the notification message of the target application in the notification center, in this embodiment, when the target application list is established (or after the target application list is established), the sender information of the notification message of each target application in the current notification center may also be added to the corresponding target application list. The target application list may be a hash table (hashMap), or may be other types of tables.
In this embodiment, when the process goes to S303, it is already confirmed that the first application corresponding to the first notification message is the target application, so that the first application list corresponding to the first application can be found from the target application list. In this embodiment, the number of the target applications may be at least two, and therefore after it is determined that the first application is the target application, the first application list needs to be found from the at least two target application lists, and if there is only one target application, there is only one target application list, which is the first application list, and therefore, the process directly goes to S304 without searching.
S304, judging whether the first sender information exists in the first application list.
If not, turning to S305; and if so, ending, and updating the first notification message into the notification center. Wherein the first sender information is information of a sender of the first notification message.
For better understanding, this is illustrated here with an example: assuming that the terminal receives the new information sent by the contact a in the "WeChat", it searches whether there is A from the WeChat list, and if not, goes to S305.
S305, directly updating the first notification message into the latest notification message in the notification center, and adding the first sender information into the first application list.
In this embodiment, when it is determined that the first notification message is a notification message of the target application and the sender information thereof does not exist in the first application list, the first notification message is directly updated to the latest notification message in the notification center, and the first sender information is added to the first application list without traversing the notification center. Here, only the first sender information may be added to the first application list, and since the first notification message includes the sender information (i.e., the first sender information), the first notification message may also be added to the first application list.
In this embodiment, when a user needs to check a notification message in a notification center, a notification center check instruction may be issued to a terminal, the terminal needs to display a View (window) of the notification center after receiving the notification center check instruction, so as to avoid a jam when jumping from a current interface of the terminal to the View of the notification center. The loaded View of the notification center can be stored in a cache, and when a notification center display instruction is received, the View of the notification center is directly extracted from the cache for display; of course, the loaded View may also be saved elsewhere. In this embodiment, after receiving the first notification message, after updating the first notification message (whether the first notification message is a notification message of a target application or not) to the notification center, the View of the notification center may be loaded, that is, every time a new notification message is received, the View of the notification message is loaded; or, loading View of the notification center once every M notification messages (the specific value of M can be flexibly set according to actual needs); of course, the time to load the View of the notification center may also be confirmed in other ways.
In this embodiment, after the View of the notification center is displayed, the notification center may be automatically turned off, for example, after the View of the notification center is displayed, whether a control instruction for the notification center is received within a preset third time period is determined, and if not, the notification center is turned off, wherein the third time period may be flexibly set according to actual needs. At this point, the notification center's View may be turned off and/or the operation of the notification center interrupted.
In this embodiment, some notification messages in the notification center may carry a remoteViews setting instruction, and if the notification messages are displayed according to the remoteViews setting instruction, too many resources are usually consumed. Therefore, in this embodiment, when the notification message of the notification center is displayed, the notification message may be displayed according to a preset manner, that is, the remoteViews setting instruction carried in the notification message is ignored, so that resources may be saved, and processing time may be saved.
In this embodiment, after receiving the first notification message, after updating the first notification message (regardless of whether the first notification message is a notification message of a target application) to the notification center, the content of the pendingevent (impending intention) corresponding to the first notification message in the notification center may be updated according to the first notification message, and at this time, the content of the pendingevent may be updated by combining the content of the first notification message, the first application corresponding to the first notification message, and the first sender corresponding to the first notification message. For example, a related control of the first notification message, such as a "reply" control, an "ignore" control, may be updated in conjunction with the first application and the first sender, and upon receiving a triggering instruction for the "reply" control, a jump is made to the dialog interface of the first contact of the first application to allow the user to edit the reply.
In the terminal control method provided in this embodiment, by receiving a first notification message, determining whether a first application corresponding to the first notification message is a preset target application, if so, finding the first application list from the target application list, determining whether first sender information exists in the first application list, where the first sender information is sender information of the first notification message, and if not, directly updating the first notification message to a latest notification message in a notification center, and adding the first sender information to the first application list, that is, in this embodiment, when a newly received notification message is a notification message sent by a preset target application and no sender information is found in the target application list corresponding to the newly received notification message, the newly received notification message is directly updated to the latest notification message in the notification center without traversing the notification center, the updating time is saved, and the user satisfaction is improved.
Second embodiment
For better understanding of the present invention, in this embodiment, a more specific example is combined for description, please refer to fig. 6, and fig. 6 is a detailed flowchart of a terminal control method according to a second embodiment of the present invention, where the terminal control method includes:
s601, counting the number of notification messages corresponding to each application installed on the terminal in a preset first time period.
In this embodiment, the first time period may be flexibly set according to an actual situation, and the number of notification messages received by the terminal in the first time period is counted.
For example, assume that the first time period is 1 day, and the number of notification messages for receiving "WeChat" in 1 day is 60, "microblog" notification messages is 20, "nail" notification messages is 40, and "QQ" notification messages is 10.
S602, setting the applications with the number of the notification messages larger than a preset first threshold value in the first time period as target applications.
The first threshold value can be flexibly set according to actual needs. In this embodiment, all applications in which the number of notification messages in the first time period is greater than the preset first threshold are set as target applications, and of course, in other embodiments, a target application number threshold may also be set, and the target applications are selected from the applications in which the number of notification messages in the first time period is greater than the preset first threshold according to the target application number threshold.
Taking the above example, assuming that the first threshold is 30 pieces, "WeChat" and "staple" are set as the target application.
And S603, respectively establishing a target application list for each target application.
In this embodiment, after the target applications are determined, a target application list is respectively established for each target application. Wherein the notification messages stored in the target list are the same as the notification messages of the target application stored in the terminal notification center.
Bearing the above example, because the 'WeChat' and the 'nail' are target applications, a 'WeChat' list is established for the 'WeChat'; a "staple" list is created for the "staples".
S604, copying a notification message of the target application currently stored in the terminal notification center into a target application list.
After the target application list is established for each target application, in order to ensure that the notification message in the target application list is the same as the notification message of the target application in the notification center, the notification message of the target application currently stored in the terminal notification center is copied to the target application list. Wherein the notification message includes its sender information.
As a bearing of the above example, it is assumed that the notification messages of the target application in the notification center include the notification message of "nail," the notification message of "WeChat," and the notification message of "QQ" in the notification center, the most recently received notification message is arranged at the forefront according to the reception time of each notification message, and the notification message of the same sender is displayed at one place according to the sender, and in table 1, although the time (10:00) of the second notification message is earlier than the time (11:00) of the third notification message, the sender of the first notification message and the sender of the second notification message are the same sender, and therefore, the first notification message and the second notification message are stored adjacently, and the second notification message is arranged before the third notification message. And copying a part of the currently stored notification message of the WeChat to a WeChat list, and copying a part of the currently stored notification message of the nailing to a nailing list, wherein the WeChat list refers to the following table 2, and the nailing list refers to the following table 3.
TABLE 1
Figure BDA0001899642300000151
TABLE 2
Figure BDA0001899642300000152
TABLE 3
Figure BDA0001899642300000161
S605, receiving a first notification message.
In this embodiment, the first notification message is a new notification message.
In the present embodiment, it is assumed that the reception time of the first notification message is 13:00, which is sent by the "WeChat" C sender.
S606, judging whether the first application corresponding to the first notification message is the target application.
If yes, turning to S607, otherwise, ending, and updating the first notification message to the notification center.
In the above example, since the "WeChat" is the first application and the target application, the process goes to S607.
S607, finding the first application list corresponding to the first application from the target application list.
I.e. find the first application list.
Bearing the above example, a "WeChat" list is found.
S608, whether the first sender information exists in the first application list or not is judged.
If yes, go to S609, otherwise, go to S611.
In the above example, since C does not exist in the "WeChat" list, the process goes to S611.
And S609, updating the notification message sent by the first sender and the first notification message into the latest notification message in the first list.
And S610, in the notification center, updating the notification message sent by the first sender and the first notification message into the latest notification message.
It should be noted that, in this embodiment, S609 is executed first, and then S610 is executed; in other embodiments, S610 may be performed first, and then S609 may be performed, or S610 and S609 may be performed simultaneously.
S611, in the first list, updating the first notification message to be the latest notification message.
The example is taken from table 4 below, and the first table is shown in table 4 below.
TABLE 4
Figure BDA0001899642300000162
Figure BDA0001899642300000171
And S612, directly updating the first notification message into the latest notification message in the notification center.
The example above is followed, see table 5 below, when the notification center is as in table 5 below.
TABLE 5
Figure BDA0001899642300000172
S613, loading the View of the notification center into a cache.
In this embodiment, some notification messages in the notification center may carry a remoteViews setting instruction, and if the notification messages are displayed according to the remoteViews setting instruction, too many resources are usually consumed. Therefore, in this embodiment, when loading the View of the notification center, the remoteViews setting instruction in each notification message can be ignored, and the View of each notification message is directly loaded in a preset manner, so that resources can be saved, and processing time can be saved.
It should be understood that, in the present embodiment, the display order of each notification message of the notification center is shown in table 5, and according to the time when each notification message is received, the notification message is displayed in the manner of being received the most recently, and for the notification message of the same sender, it may be displayed at one place, as shown in fig. 7, in table 5, two messages sent by a in the WeChat (i.e., "3 x" and "7 x") are displayed at one place; for the notification message of the same sender, it can also be displayed adjacently (i.e. the display positions thereof are adjacent), as shown in fig. 8, two messages sent by a in the WeChat in table 5 have adjacent display positions.
And S614, receiving a display instruction of the notification center.
S615, directly extracting the View of the notification center from the cache to display.
In this embodiment, after the View of the notification center is directly extracted from the cache and displayed, it may be further determined whether a control instruction for the notification center is received within a preset third time period.
If yes, ending, and if not, closing the View of the notification center. The third time period can be flexibly set according to actual needs.
In this embodiment, after a certain notification message is deleted in the notification center, if the notification message is a notification message of a target application, the notification message is deleted in the target application list in order to ensure that the notification message included in the target application list is the same as the notification message of the target application in the notification center.
In the terminal control method provided in this embodiment, by receiving the first notification message, it is determined whether the first application corresponding to the first notification message is a preset target application; if so, searching a first application list from a preset target application list, wherein the notification message stored in the target application list is the same as the notification message of the target application stored in the terminal notification center; then, judging whether a notification message of a first contact exists in the first application list, wherein the first sender is a mode person corresponding to the first notification message; if not, the first notification message is directly updated to the latest notification message in the notification center, that is, in this embodiment, when the newly received notification message is the notification message sent by the target application and the notification message sent by the sender does not exist in the notification center, the newly received notification message can be directly updated to the latest notification message in the notification center only by traversing the target application list corresponding to the new notification message once.
Third embodiment
The present embodiment provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a U disk, a CF card, an SD card, an MMC card, etc., in which one or more programs implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the steps of the terminal control method according to at least one of the first and second embodiments. And will not be described in detail herein.
The present embodiments also provide a terminal that may be implemented in various forms, such as a smart watch, a smart phone, and the like. Referring to fig. 9, the terminal provided in this embodiment includes a processor 901, a memory 902, and a communication bus 903.
The communication bus 903 in the present embodiment is used for realizing connection communication between the processor 901 and the memory 902;
the processor 901 is configured to execute one or more programs stored in the memory 902 to implement the steps of the terminal control method according to at least one of the first embodiment and the second embodiment.
The terminal and the computer-readable storage medium provided in this embodiment may further implement the following terminal control method shown in fig. 10:
and S1001, determining a target application.
In this embodiment, the target applications may be flexibly set by a terminal developer and/or a user according to actual needs, and the number of the target applications is not limited in this embodiment. In particular, reference may be made to the first embodiment and/or the second embodiment.
S1002, judging whether the number of the notification messages received in the second time period is larger than or equal to a second threshold value.
If yes, go to S1003; if not, go to S1002.
In this embodiment, the steps after S1002 are executed only when the terminal receives the notification message frequently.
In other embodiments, S1002 may be executed first, and then S1001 may be executed.
S1003, respectively establishing a target application list for each target application.
In this embodiment, the sender information included in the target application list is the same as the sender information of the notification message of the target application in the notification center.
For example, assuming that the target application is "microblog" and "QQ", a "microblog" list is established for "microblog" and a "QQ" list is established for "QQ".
And S1004, copying and adding sender information of the notification message notifying each target application in the center to each target application list.
Since the notification message includes the sender information, the sender information of the notification message of the target application in the notification center is copied and added to the target application list, so that the sender information in the target application list is the same as the sender information of the notification message of the target application in the notification message.
For example, in the above example, it is assumed that the center is notified of information transmitted by "zhang" and "zhang" of "microblog," liqi "and" liqi "of" QQ, "and information transmitted by" wang "and" wang qi "of" WeChat "are only targeted applications, and therefore," zhang "and" zhang "are added to the" microblog "list, and" liqi "are added to the" QQ "list.
S1005, receiving a first notification message.
In this embodiment, the first notification message is any newly received notification message.
Suppose that the first notification message is a message sent by "thirty-three" in "microblogs".
S1006, judging whether the first application corresponding to the first notification message is the target application.
If yes, go to S1007, and if no, end, update the first notification message to the notification center.
As the above example, the first application is "microblog", and is the target application, so the process goes to S1007.
S1007, finding the first application list from the target application list.
I.e. find the first application list.
Taking the above example, find the "microblog" list.
S1008, judging whether the first sender information exists in the first application list.
If yes, go to S1009, otherwise, go to S1010.
In the above example, since there are no "ten thousand" in the "microblog" list, the process goes to S1010.
S1009, in the notification center, updates the notification message sent by the first sender and the first notification message to the latest notification message.
S1010, adding the first sender information into the first list.
In this embodiment, only the first sender information is added to the first list.
Taking the above example, add "Wan san" to the "microblog" list.
S1011, the notification center directly updates the first notification message to the latest notification message.
In this embodiment, since the sender information included in the target application list is the same as the sender information of the notification message of the target application in the notification center, if the first sender information does not exist in the target application list, the information sent by the first sender does not exist in the notification center, and therefore, the first notification message is directly updated to the latest notification message without traversing the notification center.
In this embodiment, after a user views a certain notification message in the notification center, the notification center deletes the notification message, and at this time, if the deleted notification message is the notification message of the target application, in order to ensure that sender information included in the target application list is the same as sender information of the notification message of the target application in the notification center, the sender information of the notification message is deleted from the target application list.
The terminal and the computer-readable storage medium provided in this embodiment determine whether a first application corresponding to a first notification message is a preset target application by receiving the first notification message, if so, find the first application list from the target application list, determine whether first sender information exists in the first application list, where the first sender information is information of a sender of the first notification message, if not, directly update the first notification message to a latest notification message in a notification center, and add the first sender information to the first application list, that is, in this embodiment, when a newly received notification message is a notification message sent by a preset target application and no sender information is found in the target application list corresponding thereto, the new notification message is directly updated to the latest notification message in the notification center without traversing the notification center, the updating time is saved, and the user satisfaction is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A terminal control method, characterized in that the terminal control method comprises:
receiving a first notification message;
judging whether a first application corresponding to the first notification message is a preset target application or not;
if so, searching a first application list corresponding to the first application from a target application list;
judging whether first sender information exists in the first application list, wherein the first sender information is the sender information of the first notification message;
if not, directly updating the first notification message into the latest notification message in the notification center, and adding the first sender information into the first application list;
the terminal control method further comprises:
loading a window View of the notification center;
and when a View instruction of the notification center is received, directly displaying the View of the notification center.
2. The terminal control method according to claim 1, wherein before finding the first application list from the target application list, further comprising:
establishing a target application list for each target application;
and adding sender information of the notification message of each target application in the current notification center into each target application list.
3. The terminal control method of claim 1, wherein the adding the first sender information to the first application list comprises: adding the first notification message to the first application list, the first notification message including the first sender information.
4. The terminal control method according to claim 1, wherein before determining whether the first application corresponding to the first notification message is a preset target application, the method further comprises:
counting the number of notification messages corresponding to each application installed on the terminal in a preset first time period;
and setting the application with the number of the corresponding notification messages in the first time period being greater than or equal to a preset first threshold value as a target application.
5. The terminal control method of claim 4, wherein after directly displaying the View of the notification center, further comprising:
judging whether a control instruction aiming at the notification center is received within a preset third time period;
if not, closing the notification center.
6. The terminal control method according to claim 1, wherein the terminal control method comprises:
and displaying the notification message of the notification center according to a preset display mode.
7. The terminal control method according to any one of claims 1 to 6, wherein after receiving the first notification message, further comprising:
and updating the content of the pending intention Pendingintent corresponding to the first notification message in the notification center according to the first notification message.
8. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the terminal control method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the terminal control method according to any one of claims 1 to 7.
CN201811506801.XA 2018-12-10 2018-12-10 Terminal control method, terminal and computer readable storage medium Active CN109547638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811506801.XA CN109547638B (en) 2018-12-10 2018-12-10 Terminal control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811506801.XA CN109547638B (en) 2018-12-10 2018-12-10 Terminal control method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109547638A CN109547638A (en) 2019-03-29
CN109547638B true CN109547638B (en) 2021-09-07

Family

ID=65853391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811506801.XA Active CN109547638B (en) 2018-12-10 2018-12-10 Terminal control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109547638B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581901A (en) * 2003-08-01 2005-02-16 微软公司 Unified contact list
CN105786469A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Notice message processing method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI496068B (en) * 2013-03-18 2015-08-11 Univ Nat Chiao Tung Method for displaying a graphic interface with message notification, apparatus, and a computer-readable storage device
CN105677313A (en) * 2015-11-06 2016-06-15 乐视移动智能信息技术(北京)有限公司 Display method, device and terminal equipment for notification messages

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581901A (en) * 2003-08-01 2005-02-16 微软公司 Unified contact list
CN105786469A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Notice message processing method and apparatus

Also Published As

Publication number Publication date
CN109547638A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109036420B (en) Voice recognition control method, terminal and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN108536490B (en) Application program starting method, mobile terminal and computer storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN109254972B (en) Offline command word bank updating method, terminal and computer readable storage medium
CN107846725B (en) Notification message processing method, terminal and storage medium
CN110677897B (en) Network search control method, terminal and computer readable storage medium
CN112346824B (en) Screen projection application control method and device and computer readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN112494932A (en) Game frame supplementing method and device, terminal and computer readable storage medium
CN110334559B (en) Code scanning identification method, terminal and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN108845821B (en) Application program updating method, terminal and computer readable storage medium
CN107992564B (en) Login verification processing method, mobile terminal and computer readable storage medium
CN109547638B (en) Terminal control method, terminal and computer readable storage medium
CN110572518B (en) Screen-extinguishing control method, mobile terminal and computer-readable storage medium
CN109634629B (en) System upgrading method, terminal and computer readable storage medium
CN110413415B (en) Memory management control method, equipment and computer readable storage medium
CN110377458B (en) Data recovery method, mobile terminal and computer readable 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